Created
July 30, 2024 12:21
-
-
Save tbvinh/dcaaa2999a924586dc0c5f2cf0530231 to your computer and use it in GitHub Desktop.
AI-gunicorn service
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
#/etc/systemd/system/gunicorn.service | |
[Unit] | |
Description=Gunicorn instance to serve myapp | |
After=network.target | |
[Service] | |
User=vinh | |
Group=www-data | |
WorkingDirectory=/home/vinh | |
ExecStart=/usr/local/bin/gunicorn --workers 2 --bind 127.0.0.1:8000 myapp:app | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment