Update INSTALL.md

This commit is contained in:
Robert Einsle 2019-02-19 14:19:36 +01:00
parent 40aa6efdcf
commit 506d97ba5a

View File

@ -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 {