update installation instruction
This commit is contained in:
parent
0239368e69
commit
d976d6b653
28
INSTALL.md
28
INSTALL.md
@ -1,10 +1,10 @@
|
|||||||
# Preparing
|
# Preparing
|
||||||
|
|
||||||
- [ ] Install and configure Mailsystem (postfix) so it is possible to send mails
|
- [ ] Install and configure Mailsystem (postfix) so it is possible to send mails
|
||||||
- [ ] ```apt install python3 python3-pip python3-venv python3-virtualenv```
|
- [ ] Install python ```apt install python3 python3-pip python3-venv python3-virtualenv```
|
||||||
- [ ] ```apt install uwsgi uwsgi-plugin-python3```
|
- [ ] Install uwsgi ```apt install uwsgi uwsgi-plugin-python3```
|
||||||
- [ ] Install and configure mariadb-server ```mysql_secure_installation```
|
- [ ] 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
|
# Installation
|
||||||
@ -22,7 +22,7 @@ GRANT ALL PRIVILEGES ON carom-int.* TO 'carom-int'@'localhost';
|
|||||||
FLUSH PRIVILEGES;
|
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):
|
- [ ] Create systemd unit file for uwsgi (/etc/systemd/system/uwsgi.service):
|
||||||
|
|
||||||
@ -42,6 +42,14 @@ NotifyAccess=all
|
|||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
```
|
```
|
||||||
|
|
||||||
|
- [ ] Reread systemd configs for uwsgi
|
||||||
|
|
||||||
|
```
|
||||||
|
systemd daemon-reload
|
||||||
|
systemd enable uswgi.service
|
||||||
|
systemd restart uswgi.service
|
||||||
|
```
|
||||||
|
|
||||||
- [ ] Checkout carom
|
- [ ] Checkout carom
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -78,7 +86,7 @@ pipenv run python manage.py collectstatic
|
|||||||
|
|
||||||
Do it for /srv/carom and /srv/carom-int
|
Do it for /srv/carom and /srv/carom-int
|
||||||
|
|
||||||
Create Superuser Accounts using:
|
- [ ] Create Superuser Accounts using:
|
||||||
|
|
||||||
```
|
```
|
||||||
pipenv run python manage.py createsuperuser
|
pipenv run python manage.py createsuperuser
|
||||||
@ -99,7 +107,7 @@ vacuum = true
|
|||||||
uid = www-data
|
uid = www-data
|
||||||
gid = www-data
|
gid = www-data
|
||||||
workers = 2
|
workers = 2
|
||||||
#socket = /run/uwsgi/app/carom.socket
|
socket = /run/uwsgi/app/carom.socket
|
||||||
chmod-socket = 660
|
chmod-socket = 660
|
||||||
log-date = true
|
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
|
Create it for /etc/uwsgi/apps-available/carom.ini and carom-int.ini and link it
|
||||||
to /etc/uwsgi/apps-enabled/
|
to /etc/uwsgi/apps-enabled/
|
||||||
|
|
||||||
systemctl restart uwsgi
|
```
|
||||||
|
systemctl restart uwsgi.service
|
||||||
|
```
|
||||||
|
|
||||||
Show at syslog for errors and fix it.
|
Show at syslog for errors and fix it.
|
||||||
|
|
||||||
@ -153,7 +163,9 @@ to /etc/ngin/sites-enabled/
|
|||||||
|
|
||||||
Path to certificates must be modified.
|
Path to certificates must be modified.
|
||||||
|
|
||||||
|
```
|
||||||
systemctl restart nginx
|
systemctl restart nginx
|
||||||
|
```
|
||||||
|
|
||||||
- [ ] Create update.sh in carom and carom-int root dir
|
- [ ] 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
|
touch /etc/uwsgi/apps-enabled/carom.ini
|
||||||
popd
|
popd
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Path to uwsgi config file (in apps-enabled) musst be matching.
|
Loading…
Reference in New Issue
Block a user