osp.service 350 Bytes
Newer Older
Deamos's avatar
Deamos committed
1 2 3 4 5 6 7
[Unit]
Description=Gunicorn instance to serve myproject
After=network.target

[Service]
User=www-data
Group=www-data
8
WorkingDirectory=/opt/osp
Deamos's avatar
Deamos committed
9 10 11 12
ExecStart=/usr/bin/gunicorn app:app -k gevent -w 1 --bind 0.0.0.0:5000 --reload --access-logfile /var/log/gunicorn/access.log --error-logfile /var/log/gunicorn/error.log

[Install]
WantedBy=multi-user.target