-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>
- Loading branch information
Showing
3 changed files
with
65 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ Contents: | |
:maxdepth: 2 | ||
|
||
README | ||
locally | ||
heroku | ||
|
||
.. toctree:: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
|
||
How to run things locally | ||
========================= | ||
|
||
1. Installing RabbitMQ. | ||
|
||
.. code-block:: shell | ||
$ sudo apt-get install rabbitmq-server | ||
2. Setup RabbitMQ. | ||
|
||
.. code-block:: shell | ||
$ sudo rabbitmqctl add_vhost /pgraph | ||
$ sudo rabbitmqctl add_user pgraph passw0rd | ||
$ sudo rabbitmqctl set_permissions -p /pgraph pgraph ".*" ".*" ".*" | ||
$ sudo rabbitmqctl delete_user guest | ||
3. Cloning repository. | ||
|
||
.. code-block:: shell | ||
$ git clone https://github.com/mkouhei/pgraph | ||
$ cd pgraph | ||
$ git submodule init | ||
$ git submodule update | ||
4. Createing virtual environment. | ||
|
||
.. code-block:: shell | ||
$ pyvenv /path/to/venv | ||
$ . /path/to/venv/bin/activate | ||
5. Installing pgraph. | ||
|
||
.. code-block:: shell | ||
(venv)$ cd /path/to/pgraph | ||
(venv)$ python setup.py install | ||
or | ||
|
||
.. code-block:: shell | ||
(venv)$ easy_install pgraph | ||
.. warning:: | ||
Not use ``pip install pgraph``. See also "`Known issue with the packages that depends on py-deps <http://py-deps.readthedocs.org/en/latest/README.html#known-issue-with-the-packages-that-depends-on-py-deps>`_". | ||
|
||
|
||
6. Running celery worker. | ||
|
||
.. code-block:: shell | ||
(venv)$ CELERY_CONFIG=/path/to/pgraph/development.ini celery -A pgraph.tasks worker --loglevel=info | ||
7. Running pserve from another venv session. | ||
|
||
.. code-block:: shell | ||
(venv)$ pserve /path/to/pgraph/development.ini | ||