From 506d97ba5adda6f6d032ea61116800399336fb67 Mon Sep 17 00:00:00 2001 From: Robert Einsle Date: Tue, 19 Feb 2019 14:19:36 +0100 Subject: [PATCH] Update INSTALL.md --- INSTALL.md | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 8c20a88..38b347c 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -1,14 +1,19 @@ # Preparing - [ ] Install and configure Mailsystem (postfix) so it is possible to send mails + - [ ] apt install python3 python3-pip python3-venv python3-virtualenv + - [ ] apt install uwsgi uwsgi-plugin-python3 + - [ ] Install and configure mariadb-server + - [ ] Install and configure nginx und selfencrypt + # Installation -## Create databases for carom and carom-int +- [ ] Create databases for carom and carom-int ``` -- carom @@ -21,9 +26,9 @@ GRANT ALL PRIVILEGES ON carom-int.* TO 'carom-int'@'localhost'; FLUSH PRIVILEGES; ``` -### Passphrases should be replaced by usefull characters +Passphrases should be replaced by usefull characters -## Create systemd unit file for uwsgi (/etc/systemd/system/uwsgi.service): +- [ ] Create systemd unit file for uwsgi (/etc/systemd/system/uwsgi.service): ``` [Unit] @@ -41,7 +46,7 @@ NotifyAccess=all WantedBy=multi-user.target ``` -## Checkout carom +- [ ] Checkout carom ``` cd /srv @@ -53,13 +58,13 @@ git pull cd .. ``` -## Install pipenv +- [ ] Install pipenv ``` Pip3 install –upgrade pipenv ``` -## Create caromserver/local_settings.py for both environments: +- [ ] Create caromserver/local_settings.py for both environments: ``` cd caromserver @@ -77,7 +82,13 @@ pipenv run python manage.py collectstatic Do it for /srv/carom and /srv/carom-int -## Create config File for uwsgi/carom +Create Superuser Accounts using: + +``` +pipenv run python manage.py createsuperuser +``` + +- [ ] Create config File for uwsgi/carom ``` # carom...ini file @@ -102,7 +113,7 @@ to /etc/uwsgi/apps-enabled/ systemctl restart uwsgi Show at syslog for errors and fix it. -## Create Config File for nginx/carom +- [ ] Create Config File for nginx/carom ``` upstream socket_carom {