systemd_pytestapp.service 269 B

12345678910111213
  1. [Unit]
  2. Description=pytestapp
  3. After=network.target
  4. [Service]
  5. User=[runuser]
  6. Group=[rungroup]
  7. ExecStart=/bin/bash -c "source [path/to/virtualenv]/bin/activate ; export FLASK_APP=pytestapp ; flask run --host=0.0.0.0"
  8. Restart=always
  9. [Install]
  10. WantedBy=multi-user.target