mirror of
https://github.com/TrentSPalmer/flask_photo_scaling_app.git
synced 2024-11-16 14:41:29 -08:00
add example systemd service
This commit is contained in:
parent
64ced70c50
commit
d506798a13
15
photo_app.service.example
Normal file
15
photo_app.service.example
Normal file
@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Photo Application
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=<app_user>
|
||||
Group=<app_user>
|
||||
WorkingDirectory=/var/lib/<app_user>
|
||||
Environment=FLASK_DEBUG=0
|
||||
# apt-get install python3-gunicorn gunicorn
|
||||
ExecStart=/usr/bin/gunicorn3 --access-logfile '-' -b 127.0.0.1:8200 -w 1 <app_user>:app
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user