Created
January 31, 2011 21:11
-
-
Save fadur/804825 to your computer and use it in GitHub Desktop.
get monitor gist
This file contains hidden or 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
| 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