+14
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=PBT Flask App (Gunicorn)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=www-data
|
||||
WorkingDirectory=/opt/pbt
|
||||
Environment="PBT_DATABASE_URL=postgresql://pbt_app:changeme@postgres/pbt"
|
||||
Environment="PBT_SECRET_KEY=bitte-aendern"
|
||||
ExecStart=/opt/pbt/venv/bin/gunicorn --workers 2 --bind 127.0.0.1:8000 app:app
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user