add initial documentation files
This commit is contained in:
parent
9de85824d1
commit
c84b6c8fc5
13 changed files with 883 additions and 0 deletions
84
docs/install.rst
Normal file
84
docs/install.rst
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
.. index:: installation
|
||||
|
||||
=======
|
||||
Install
|
||||
=======
|
||||
|
||||
Working Environment
|
||||
===================
|
||||
|
||||
You have several options in setting up your working environment. We recommend
|
||||
using virtualenv to separate the dependencies of your project from your
|
||||
system's python environment. If on Linux or Mac OS X, you can also use
|
||||
virtualenvwrapper to help manage multiple virtualenvs across different
|
||||
projects.
|
||||
|
||||
.. index:: virtualenv
|
||||
|
||||
Virtualenv Only
|
||||
---------------
|
||||
|
||||
First, make sure you are using `virtualenv`_. Once that's installed, create
|
||||
your virtualenv:
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
$ virtualenv --distribute gvamysql
|
||||
|
||||
.. _virtualenv: https://virtualenv.pypa.io/en/latest/
|
||||
|
||||
You will also need to ensure that the virtualenv has the project directory
|
||||
added to the path. Adding the project directory will allow `django-admin.py` to
|
||||
be able to change settings using the `--settings` flag.
|
||||
|
||||
.. index:: virtualenvwrapper
|
||||
|
||||
Virtualenv with virtualenvwrapper
|
||||
------------------------------------
|
||||
|
||||
In Linux and Mac OSX, you can install `virtualenvwrapper
|
||||
<http://virtualenvwrapper.readthedocs.org/en/latest/>`_, which will take care
|
||||
of managing your virtual environments and adding the project path to the
|
||||
`site-directory` for you:
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
$ mkdir gvamysql
|
||||
$ mkvirtualenv -a gvamysql gvamysql-dev
|
||||
$ cd gvamysql && add2virtualenv `pwd`
|
||||
|
||||
|
||||
.. index:: pip, requirements, dependencies
|
||||
|
||||
Installation of Dependencies
|
||||
=============================
|
||||
|
||||
Depending on where you are installing dependencies:
|
||||
|
||||
In development:
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
$ pip install -r requirements/local.txt
|
||||
|
||||
For production:
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
$ pip install -r requirements.txt
|
||||
|
||||
.. index:: celery, worker, file queue
|
||||
|
||||
Running the Celery worker
|
||||
=========================
|
||||
|
||||
gvamysql uses the `Celery`_ distributed task queue system. The gvamysql logic is
|
||||
executed by a celery worker. After all dependencies are installed you can go
|
||||
into the gvamysql directory and run the celery worker with:
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
$ cd gvamysql
|
||||
$ celery -A gvamysql worker -Q mysql -l info
|
||||
|
||||
.. _Celery: http://www.celeryproject.org/
|
||||
Loading…
Add table
Add a link
Reference in a new issue