Created
January 31, 2011 21:01
-
-
Save fadur/804803 to your computer and use it in GitHub Desktop.
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 setup(): | |
"""docstring for setup""" | |
require('hosts', provided_by=[local]) | |
require('path') | |
with cd(env.workspace): | |
run('virtualenv --no-site-packages %(projectname)s' % env) | |
sudo('easy_install pip', pty=True) | |
run('source %(activate_path)s; pip install django' % env) | |
with cd(env.path): | |
run('source %(activate_path)s; django-admin.py startproject %(projectname)s' % env) | |
run ('mkdir %(path)s/apache' % env ) | |
run('mkdir %(apache_path)s/logs; touch %(apache_path)s/%(projectname)s.conf; touch %(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