зеркало из https://github.com/mozilla/treeherder.git
Update installation.rst
Adds a couple of installation steps to: init datasources modify /etc/hosts build the c extensions
This commit is contained in:
Родитель
3106bfc9d5
Коммит
0eda7ea205
|
@ -31,11 +31,24 @@ Installation
|
||||||
|
|
||||||
(venv)vagrant@precise32:~/treeherder-service$ ./runtests.sh
|
(venv)vagrant@precise32:~/treeherder-service$ ./runtests.sh
|
||||||
|
|
||||||
* Init a master database:
|
* Init a master database and setup datasources:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
(venv)vagrant@precise32:~/treeherder-service$ python manage.py init_master_db
|
(venv)vagrant@precise32:~/treeherder-service$ python manage.py init_master_db
|
||||||
|
(venv)vagrant@precise32:~/treeherder-service$ python manage.py init_datasources
|
||||||
|
|
||||||
|
* Add an entry to your vm /etc/hosts for your treeherder virtual host:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
127.0.0.1 local.treeherder.mozilla.org
|
||||||
|
|
||||||
|
* And one to your host machine /etc/hosts so that you can point your browser to local.treeherder.mozilla.org to reach it
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
192.168.33.10 local.treeherder.mozilla.org
|
||||||
|
|
||||||
* Start a gunicorn instance listening on port 8000
|
* Start a gunicorn instance listening on port 8000
|
||||||
|
|
||||||
|
@ -43,7 +56,7 @@ Installation
|
||||||
|
|
||||||
(venv)vagrant@precise32:~/treeherder-service$ gunicorn treeherder.webapp.wsgi:application
|
(venv)vagrant@precise32:~/treeherder-service$ gunicorn treeherder.webapp.wsgi:application
|
||||||
|
|
||||||
all the request sent to your virtual machine (ip 192.168.33.10 by default) on port 80 will be proxied to port 8000 by apache.
|
all the request sent to local.treeherder.mozilla.org will be proxied to it by apache.
|
||||||
|
|
||||||
* Start up one or more celery worker to process async tasks:
|
* Start up one or more celery worker to process async tasks:
|
||||||
|
|
||||||
|
@ -62,6 +75,12 @@ Installation
|
||||||
|
|
||||||
this is more convenient because it automatically refreshes every time there's a change in the code.
|
this is more convenient because it automatically refreshes every time there's a change in the code.
|
||||||
|
|
||||||
|
* The log parser shipped with treeherder makes use of cython. If you change something in the treeherder/log_parser folder, remember to re-build the c extensions with:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
(venv)vagrant@precise32:~/treeherder-service$ python setup.py build_ext --inplace
|
||||||
|
|
||||||
|
|
||||||
.. _project repo: https://github.com/mozilla/treeherder-service
|
.. _project repo: https://github.com/mozilla/treeherder-service
|
||||||
.. _Vagrant: http://downloads.vagrantup.com
|
.. _Vagrant: http://downloads.vagrantup.com
|
||||||
|
|
Загрузка…
Ссылка в новой задаче