コード例 #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"))