13 lines
266 B
SYSTEMD
13 lines
266 B
SYSTEMD
|
[Unit]
|
||
|
Description=Gunicorn flaskapp service
|
||
|
Documentation=man:gunicorn(1)
|
||
|
After=network.target nss-lookup.target
|
||
|
|
||
|
[Service]
|
||
|
WorkingDirectory=/var/flaskapp/
|
||
|
ExecStart=/usr/bin/gunicorn --workers 3 --bind 127.0.0.1:5000 run:app
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|
||
|
|