예제 #1
0
파일: app.py 프로젝트: oyanezm/fabdeploy
def install_requirements():
    """
    install virtualenv requirements from requirements.txt
    """
    from fabdeploy.virtualenv import with_virtualenv_remote
    with cd(env.root_path):
        with_virtualenv_remote('pip install -r requirements.txt')
예제 #2
0
파일: django.py 프로젝트: oyanezm/fabdeploy
def migrate(use_syncdb = False, app_name=''):
    """
    run migrations on "app_name".
    use_syncdb in case its first time to migrate
    """
    if use_syncdb:
        syncdb()
    with_virtualenv_remote(admin("migrate %s" % app_name))
예제 #3
0
파일: django.py 프로젝트: oyanezm/fabdeploy
def auto_migration(app_name):
    with_virtualenv_remote(admin("schemamigration %s --auto" % app_name))
예제 #4
0
파일: django.py 프로젝트: oyanezm/fabdeploy
def initial_migration(app_name):
    with_virtualenv_remote(admin("schemamigration %s --initial" % app_name))
예제 #5
0
파일: django.py 프로젝트: oyanezm/fabdeploy
def syncdb():
    """
    runs django-admin.py syncdb
    """
    with_virtualenv_remote(admin("syncdb"))
예제 #6
0
파일: django.py 프로젝트: oyanezm/fabdeploy
def collectstatic():
    """
    calls collect static files
    """
    result = with_virtualenv_remote(admin("collectstatic"))