def _upload_rungunicorn_script():
    if isfile('scripts/rungunicorn.sh'):
        ''' we use user defined rungunicorn file '''
        template = 'scripts/rungunicorn.sh'
    else:
        template = '%s/scripts/rungunicorn.sh' % fagungis_path
    upload_template(template, env.rungunicorn_script,
                    context=env, backup=False, use_sudo=True)
    sudo('chmod +x %s' % env.rungunicorn_script)
upload rungunicorn conf
dataset/ETHPy150Open DNX/django-fagungis/fagungis/tasks.py/_upload_rungunicorn_script