add doc for deployment on web
This commit is contained in:
parent
339147e762
commit
3e9d3c838e
11 changed files with 309 additions and 469 deletions
29
server_config/oedb-uwsgi.service
Normal file
29
server_config/oedb-uwsgi.service
Normal file
|
@ -0,0 +1,29 @@
|
|||
[Unit]
|
||||
Description=uWSGI service for OpenEventDatabase backend
|
||||
After=network.target postgresql.service
|
||||
|
||||
[Service]
|
||||
User=www-data
|
||||
Group=www-data
|
||||
WorkingDirectory=/home/poule/encrypted/oedb-backend
|
||||
Environment="DB_USER=cipherbliss"
|
||||
Environment="POSTGRES_PASSWORD=tralalahihou"
|
||||
ExecStartPre=/home/poule/encrypted/oedb-backend/setup_db.sh
|
||||
ExecStart=/home/poule/encrypted/oedb-backend/venv/bin/uwsgi \
|
||||
--http :8080 \
|
||||
--wsgi-file backend.py \
|
||||
--callable app \
|
||||
--master \
|
||||
--processes 4 \
|
||||
--threads 2 \
|
||||
--vacuum
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
KillSignal=SIGQUIT
|
||||
Type=notify
|
||||
NotifyAccess=all
|
||||
StandardError=syslog
|
||||
StandardOutput=syslog
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue