コード例 #1
0
ファイル: tasks.py プロジェクト: local-projects/cubric
def upload_config():
    """Upload a new app config"""
    with app_context() as c:
        c.upload_config()
コード例 #2
0
ファイル: tasks.py プロジェクト: local-projects/cubric
def create_app_context():
    """Create an app context"""
    with app_context() as c:
        c.create()
コード例 #3
0
ファイル: tasks.py プロジェクト: local-projects/cubric
def upload_release():
    """Upload a new app release"""
    with app_context() as c:
        c.upload_app()
コード例 #4
0
ファイル: tasks.py プロジェクト: local-projects/cubric
def stop_app():
    """Stop the application"""
    with app_context() as c:
        c.stop()
コード例 #5
0
ファイル: tasks.py プロジェクト: local-projects/cubric
def start_app():
    """Start the applicaiton"""
    with app_context() as c:
        c.start()
コード例 #6
0
ファイル: tasks.py プロジェクト: local-projects/cubric
def restart_app():
    """Restart the application"""
    with app_context() as c:
        c.restart()
コード例 #7
0
ファイル: tasks.py プロジェクト: local-projects/cubric
def deploy():
    """Full deploy (upload_release, upload_config, link_config, restart_app)"""
    with app_context() as c:
        c.deploy()
コード例 #8
0
ファイル: tasks.py プロジェクト: local-projects/cubric
def link_config():
    """Symlink necessary config files"""
    with app_context() as c:
        c.link_config()