Created
October 15, 2022 15:54
-
-
Save mailtodanish/0871055c321c3051ed2a086172177104 to your computer and use it in GitHub Desktop.
systemd service for pipenv
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=flask service 2001 | |
After=multi-user.target | |
[Service] | |
Restart=always | |
RestartSec=1 | |
WorkingDirectory=/opt/sqlite/gk-backend-sqlite | |
ExecStart=/usr/local/bin/pipenv run gunicorn --bind 0.0.0.0:5000 --log-level=error --error-logfile /var/www/2021/gunicorn-error.log --access-logfile /var/www/2021/gunicorn-access.log wsgi:app | |
StandardInput=tty-force | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment