Exemplo n.º 1
0
 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()
Exemplo n.º 2
0
 def run(self, command):
     with cd(get_project_root()):
         run(command)
Exemplo n.º 3
0
 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")