Last active
June 29, 2019 22:23
-
-
Save mitchtabian/febe99eddb3ab986a7153a9a66f593e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=gunicorn daemon for django project | |
Requires=gunicorn.socket | |
After=network.target | |
[Service] | |
User=mitch | |
Group=www-data | |
WorkingDirectory=/home/mitch/djangoprojectdir | |
ExecStart=/home/mitch/djangoprojectdir/djangoprojectenv/bin/gunicorn \ | |
--access-logfile - \ | |
--workers 3 \ | |
--bind unix:/run/gunicorn.sock \ | |
mysite.wsgi:application | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=gunicorn socket | |
[Socket] | |
ListenStream=/run/gunicorn.sock | |
[Install] | |
WantedBy=sockets.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment