Revision c4af6d07 docs/source/adminguide.rst
b/docs/source/adminguide.rst | ||
---|---|---|
17 | 17 |
cd / |
18 | 18 |
git clone https://code.grnet.gr/git/pithos |
19 | 19 |
|
20 |
Setup the files (choose where to store data in ``settings.py`` and change ``SECRET_KEY``)::
|
|
20 |
Setup the files:: |
|
21 | 21 |
|
22 | 22 |
cd /pithos/pithos |
23 |
cp settings.py.dist settings.py |
|
24 | 23 |
python manage.py syncdb |
25 | 24 |
python manage.py schemamigration im --initial |
26 | 25 |
cd /pithos |
27 | 26 |
python setup.py build_sphinx |
28 | 27 |
|
28 |
It is advised that you create a ``settings.local`` file to place any configuration overrides (at least change ``SECRET_KEY``). |
|
29 |
|
|
29 | 30 |
Edit ``/etc/apache2/sites-available/pithos`` (change the ``ServerName`` directive):: |
30 | 31 |
|
31 | 32 |
<VirtualHost *:80> |
... | ... | |
115 | 116 |
|
116 | 117 |
Useful alias to add in ``~/.bashrc``:: |
117 | 118 |
|
118 |
alias pithos-sync='cd /pithos && git pull && python setup.py build_sphinx && /etc/init.d/apache2 restart' |
|
119 |
alias pithos-sync='cd /pithos && git pull && python setup.py build_sphinx && cd pithos && python manage.py migrate im && /etc/init.d/apache2 restart'
|
|
119 | 120 |
|
120 | 121 |
Gunicorn Setup |
121 | 122 |
-------------- |
... | ... | |
160 | 161 |
ProxyPass /api http://localhost:8080 retry=0 |
161 | 162 |
ProxyPassReverse /api http://localhost:8080 |
162 | 163 |
|
163 |
Make sure that in ``settings.py``::
|
|
164 |
Make sure that in ``settings.local``::
|
|
164 | 165 |
|
165 | 166 |
USE_X_FORWARDED_HOST = True |
166 | 167 |
|
Also available in: Unified diff