mirror of
https://github.com/openzim/zimit.git
synced 2025-09-22 11:22:23 -04:00
Update the readme with better installation instructions
This commit is contained in:
parent
6756b2e55d
commit
a45f56f23a
22
README.rst
22
README.rst
@ -8,22 +8,29 @@ Given any WebSite, get a ZIM file out of it!
|
||||
How to use it?
|
||||
##############
|
||||
|
||||
Install it using pip
|
||||
Install it by checking the sources from github.
|
||||
|
||||
::
|
||||
|
||||
$ pip install zimit
|
||||
$ git clone https://github.com/almet/zimit.git
|
||||
$ cd zimit
|
||||
|
||||
Create a virtual environment and install the project in it::
|
||||
|
||||
$ virtualenv venv
|
||||
$ venv/bin/pip install -e .
|
||||
|
||||
Then, run it how you want, for instance with pserve::
|
||||
|
||||
$ pserve zimit.ini
|
||||
$ venv/bin/pserve zimit.ini
|
||||
|
||||
|
||||
In a separate process, you also need to run the worker::
|
||||
|
||||
$ rqworker
|
||||
$ venv/bin/rqworker
|
||||
|
||||
|
||||
To test it::
|
||||
And you're ready to go. To test it::
|
||||
|
||||
$ http POST http://0.0.0.0:6543/website url="https://refugeeinfo.eu/" title="Refugee Info" email="alexis@notmyidea.org"
|
||||
|
||||
@ -69,11 +76,6 @@ available in /home/www, so let's consider this will be the case here::
|
||||
$ cd /home/www/zimit.notmyidea.org
|
||||
$ git clone https://github.com/almet/zimit.git
|
||||
|
||||
Create a virtual environment and activate it::
|
||||
|
||||
$ virtualenv venv
|
||||
$ activate venv/bin/activate
|
||||
|
||||
Then, you can change the configuration file, by creating a new one::
|
||||
|
||||
$ cd zimit
|
||||
|
Loading…
x
Reference in New Issue
Block a user