06/15 Phase 1 + 2 codes
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
[Unit]
|
||||
Description=Classifieds Flask app (Gunicorn)
|
||||
After=network.target mysql.service redis-server.service
|
||||
Wants=redis-server.service
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
User=classifieds
|
||||
Group=classifieds
|
||||
WorkingDirectory=/opt/classifieds
|
||||
Environment="PATH=/opt/classifieds/venv/bin"
|
||||
EnvironmentFile=/opt/classifieds/.env
|
||||
RuntimeDirectory=classifieds
|
||||
ExecStart=/opt/classifieds/venv/bin/gunicorn -c deploy/gunicorn.conf.py wsgi:app
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user