flask_photo_scaling_app/examples/systemd/photo_app.service.example

16 lines
350 B
Plaintext
Raw Normal View History

2021-01-08 14:32:50 -08:00
[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