def _upload_nginx_conf():
    local_nginx_conf_file_name = 'nginx.conf'
    if env.nginx_https:
        local_nginx_conf_file_name = 'nginx_https.conf'
    local_nginx_conf_file_path = "%s/conf/%s" % (dirname(env.real_fabfile), local_nginx_conf_file_name)
    if isfile(local_nginx_conf_file_path):
        ''' we use user defined conf template '''
        template = local_nginx_conf_file_path
    else:
        template = '%s/conf/%s' % (fagungis_path, local_nginx_conf_file_name)
    context = copy(env)
    # Template
    upload_template(template, env.nginx_conf_file,
                    context=context, backup=False, use_sudo=True)

    sudo('ln -sf %s /etc/nginx/sites-enabled/%s' % (env.nginx_conf_file, basename(env.nginx_conf_file)))
    _test_nginx_conf()
    sudo('nginx -s reload')
Riemann zeta function, real argument
dataset/ETHPy150Open DNX/django-fagungis/fagungis/tasks.py/_upload_nginx_conf--crossover with--dataset/ETHPy150Open fredrik-johansson/mpmath/mpmath/math2.py/zeta