18 lines
423 B
Desktop File
18 lines
423 B
Desktop File
#cp to /etc/systemd/system/gunicorn.service
|
|
[Unit]
|
|
Description=gunicorn daemon
|
|
Requires=gunicorn.socket
|
|
After=network.target
|
|
|
|
[Service]
|
|
User=root
|
|
Group=www-data
|
|
WorkingDirectory=/root/appdirectory/
|
|
ExecStart=/root/appdirectory/testappenv/bin/gunicorn \
|
|
--access-logfile - \
|
|
--workers 3 \
|
|
--bind unix:/run/gunicorn.sock \
|
|
testapp.wsgi:application
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |