Beispiel #1
0
def deploy(env, name, manager_name="manager", do_deploy=True):
    config = init_config(env)

    with dc.require_cmd_context(env, config):
        #dc.upgrade_db(manager_name, env)
        if do_deploy:
            dc.update_deploy_file(name)
            dc.stop_python_server(name)
            dc.start_python_server(name)
Beispiel #2
0
def db_migrate(env, manager_name):
    config = init_config(env)

    with dc.require_cmd_context(config):
        dc.upgrade_db(manager_name, env)