diff --git a/INSTALL.md b/INSTALL.md index 33556be..1c5be7d 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -1,10 +1,10 @@ # 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 python ```apt install python3 python3-pip python3-venv python3-virtualenv``` +- [ ] Install uwsgi ```apt install uwsgi uwsgi-plugin-python3``` - [ ] Install and configure mariadb-server ```mysql_secure_installation``` -- [ ] Install and configure nginx und selfencrypt +- [ ] Install and configure nginx und let's encrypt or similar # Installation @@ -22,7 +22,7 @@ GRANT ALL PRIVILEGES ON carom-int.* TO 'carom-int'@'localhost'; FLUSH PRIVILEGES; ``` -Passphrases should be replaced by usefull characters +Passphrases should be replaced by useful characters - [ ] Create systemd unit file for uwsgi (/etc/systemd/system/uwsgi.service): @@ -42,6 +42,14 @@ NotifyAccess=all WantedBy=multi-user.target ``` +- [ ] Reread systemd configs for uwsgi + +``` +systemd daemon-reload +systemd enable uswgi.service +systemd restart uswgi.service +``` + - [ ] Checkout carom ``` @@ -78,7 +86,7 @@ pipenv run python manage.py collectstatic Do it for /srv/carom and /srv/carom-int -Create Superuser Accounts using: +- [ ] Create Superuser Accounts using: ``` pipenv run python manage.py createsuperuser @@ -99,7 +107,7 @@ vacuum = true uid = www-data gid = www-data workers = 2 -#socket = /run/uwsgi/app/carom.socket +socket = /run/uwsgi/app/carom.socket chmod-socket = 660 log-date = true ``` @@ -107,7 +115,9 @@ log-date = true Create it for /etc/uwsgi/apps-available/carom.ini and carom-int.ini and link it to /etc/uwsgi/apps-enabled/ -systemctl restart uwsgi +``` +systemctl restart uwsgi.service +``` Show at syslog for errors and fix it. @@ -153,7 +163,9 @@ to /etc/ngin/sites-enabled/ Path to certificates must be modified. +``` systemctl restart nginx +``` - [ ] Create update.sh in carom and carom-int root dir @@ -166,3 +178,5 @@ pipenv run ./manage.py collectstatic --noinput touch /etc/uwsgi/apps-enabled/carom.ini popd ``` + +Path to uwsgi config file (in apps-enabled) musst be matching. \ No newline at end of file