Skip to content

Instantly share code, notes, and snippets.

@mailtodanish
Created October 15, 2022 15:54
Show Gist options
  • Save mailtodanish/0871055c321c3051ed2a086172177104 to your computer and use it in GitHub Desktop.
Save mailtodanish/0871055c321c3051ed2a086172177104 to your computer and use it in GitHub Desktop.
systemd service for pipenv
[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