diff options
author | Étienne Loks <etienne@peacefrogs.net> | 2019-08-27 13:44:08 +0200 |
---|---|---|
committer | Étienne Loks <etienne@peacefrogs.net> | 2019-08-27 13:44:08 +0200 |
commit | c384df96808d7783e1d1312a68f6c265bf1a4c75 (patch) | |
tree | ac6ad1a6b20ffffdcb75b6c961f6d230cf92b0f8 /INSTALL.md | |
parent | 7f9d36892be1da433cd20ff17caa0487a7e6179b (diff) | |
download | ishtar-pergamon-c384df96808d7783e1d1312a68f6c265bf1a4c75.tar.bz2 ishtar-pergamon-c384df96808d7783e1d1312a68f6c265bf1a4c75.zip |
Installation: complete instruction - fix conf files and settings
Diffstat (limited to 'INSTALL.md')
-rw-r--r-- | INSTALL.md | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -21,18 +21,25 @@ virtualenv --system-site-packages $VENV_PATH/pergamon pip install -r $SRV_PATH/ishtar-pergamon/requirements.txt cd $SRV_PATH/ishtar-pergamon -# initialize the DB and the static files +# initialize DB, static files, translations... +cp pergamon/settings/local.py.sample pergamon/settings/local.py +vim pergamon/settings/local.py # at least set a SECRET_KEY, BASE_URL and ALLOWED_HOSTS + +chown -R www-data:www-data media cp Makefile.example Makefile make collectstatic make migrate -chown -R www-data:www-data media +make compilemessages +./manage.py createsuperuser +# webserver configuration cp conf/nginx.conf.template /etc/nginx/sites-available/pergamon.conf -vim /etc/nginx/sites-available/pergamon.conf +vim /etc/nginx/sites-available/pergamon.conf # change at least server name ln -s /etc/nginx/sites-available/pergamon.conf /etc/nginx/sites-enabled/pergamon.conf cp conf/uwsgi.ini.template /etc/uwsgi/apps-available/pergamon.ini -vim /etc/uwsgi/apps-available/pergamon.ini +vim /etc/uwsgi/apps-available/pergamon.ini # change at least projectdomain ln -s /etc/uwsgi/apps-available/pergamon.ini /etc/uwsgi/apps-enabled/pergamon.ini +systemctl restart uwsgi nginx ``` |