예제 #1
0
파일: fabfile.py 프로젝트: tiliv/wtds
 def run(self, syncdb=True, collectstatic=True):
     with cd(get_project_root()):
         with cd("wtds"):
             run("git pull")
             install_requirements.run()
             if syncdb:
                 manage.syncdb.run()
             manage.migrate.run()
             if collectstatic:
                 manage.collectstatic.run()
             bounce.run()
예제 #2
0
파일: fabfile.py 프로젝트: tiliv/wtds
 def run(self, command):
     with cd(get_project_root()):
         run(command)
예제 #3
0
파일: fabfile.py 프로젝트: tiliv/wtds
 def run(self, virtualenv="wtds"):
     with cd(get_project_root() + '/wtds'):
         with prefix('source /etc/bash_completion.d/virtualenvwrapper'):
             with prefix('workon {}'.format(virtualenv)):
                 run("pip install -r requirements.txt")