Example #1
0
File: deploy.py Project: webee/pay
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)
Example #2
0
File: deploy.py Project: webee/pay
def db_migrate(env, manager_name):
    config = init_config(env)

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