Skip to content

Instantly share code, notes, and snippets.

@fadur
Created January 31, 2011 21:11
Show Gist options
  • Select an option

  • Save fadur/804825 to your computer and use it in GitHub Desktop.

Select an option

Save fadur/804825 to your computer and use it in GitHub Desktop.
get monitor gist
def get_monitor():
"""download and enable auto restart of wsgi"""
run('cd %(path)s;git clone git://gist.github.com/258020.git gist-258020' % env)
run('cd %(path)s/gist-258020; mv monitor.py %(path)s/%(projectname)s/; rm -rf %(path)s/gist-258020' % env)
append("\nimport %(projectname)s.monitor\n%(projectname)s.monitor.start(interval=1.0)" % env,"%(apache_path)s/%(projectname)s.wsgi" % env)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment