Skip to content

Instantly share code, notes, and snippets.

@frankV
Created May 1, 2015 15:56
Show Gist options
  • Save frankV/17beb6ef1aab48429197 to your computer and use it in GitHub Desktop.
Save frankV/17beb6ef1aab48429197 to your computer and use it in GitHub Desktop.
flask.upstart.conf
description "flask example"
author "admin@example.com"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
script
cd /<your-application-path>/
. /<your-env-path>/bin/activate
/<path-to-env-python>/python run.py
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment