2014-12-25 15:22:33 +01:00
|
|
|
.. index:: installation
|
|
|
|
|
|
|
|
=======
|
|
|
|
Install
|
|
|
|
=======
|
|
|
|
|
|
|
|
Working Environment
|
|
|
|
===================
|
|
|
|
|
2020-03-04 16:52:11 +01:00
|
|
|
To get a running work environment use `pipenv`_.
|
2014-12-25 15:22:33 +01:00
|
|
|
|
2020-03-04 16:52:11 +01:00
|
|
|
.. _pipenv: https://pipenv.kennethreitz.org/en/latest/
|
2014-12-25 15:22:33 +01:00
|
|
|
|
2020-03-04 16:52:11 +01:00
|
|
|
To get started install `pip` and `pipenv` and use `pipenv install --dev`:
|
2014-12-25 15:22:33 +01:00
|
|
|
|
|
|
|
.. code-block:: sh
|
|
|
|
|
2020-03-04 16:52:11 +01:00
|
|
|
$ apt install python3-pip
|
|
|
|
$ python3 -m pip install --user -U pipenv
|
|
|
|
$ pipenv install --dev
|
2014-12-25 15:22:33 +01:00
|
|
|
|
|
|
|
.. index:: celery, worker, file queue
|
|
|
|
|
|
|
|
Running the Celery worker
|
|
|
|
=========================
|
|
|
|
|
2020-03-04 16:52:11 +01:00
|
|
|
gvafile uses the `Celery`_ distributed task queue system. The gvafile logic is
|
2014-12-25 15:22:33 +01:00
|
|
|
executed by a celery worker. After all dependencies are installed you can go
|
|
|
|
into the gvafile directory and run the celery worker with:
|
|
|
|
|
|
|
|
.. code-block:: sh
|
|
|
|
|
|
|
|
$ cd gvafile
|
2020-03-04 16:52:11 +01:00
|
|
|
$ pipenv run celery -A filerservertasks worker -Q web -l info
|
2014-12-25 15:22:33 +01:00
|
|
|
|
|
|
|
.. _Celery: http://www.celeryproject.org/
|