Exemple #1
0
def configure():
    """ renders config of nginx and restarts gracefully
    """
    env.roles = ["proxy"]
    put_template("proxy_nginx.conf", "~/conf/nginx.conf", context=proxy_config())
    put_template("proxy_supervisor.ini", "~/conf/supervisor.ini", context=proxy_config())
    execute(supervisor.restart)
    print_successful()
Exemple #2
0
def configure():
    put_template('app_nginx.conf', '~/conf/nginx.conf', context=get_role_config(env))
    put_template('app_uwsgi.ini', '~/conf/uwsgi.ini', context=get_role_config(env))
    put_template('app_supervisor.ini', '~/conf/supervisor.ini', context=get_role_config(env))
    execute(supervisor.restart)
    print_successful()