Created
January 15, 2021 03:02
-
-
Save Soyuzbek/ad6f87f026536b752c22982f5a12ce0b to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
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