Skip to content

Instantly share code, notes, and snippets.

@Soyuzbek
Created January 15, 2021 03:02
Show Gist options
  • Save Soyuzbek/ad6f87f026536b752c22982f5a12ce0b to your computer and use it in GitHub Desktop.
Save Soyuzbek/ad6f87f026536b752c22982f5a12ce0b to your computer and use it in GitHub Desktop.
[Unit]
Description=gunicorn daemon
Requires=gunicorn.socket
After=network.target
[Service]
User=user-name
Group=www-data
WorkingDirectory=/home/user-name/myprojectdir
ExecStart=/home/user-name/myprojectdir/myprojectenv/bin/gunicorn \
--access-logfile - \
--workers 3 \
--bind unix:/run/gunicorn.sock \
myproject.wsgi:application
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment