First revision
This commit is contained in:
12
surfsmart-backend.service
Normal file
12
surfsmart-backend.service
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=SurfSmart Flask Backend
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/opt/surfsmart/backend_flask
|
||||
EnvironmentFile=/opt/surfsmart/.env
|
||||
ExecStart=/opt/surfsmart/venv/bin/gunicorn -w 4 -b 127.0.0.1:5000 run:app
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user