def add_gunicorn_service(): """ Deploys a gunicorn configuration file. """ # deploys the gunicorn script first add_gunicorn_script() filename = "%s/fabfile/templates/django.conf" filename %= env.local_root_dir gunicorn_script = "%s/gunicorn.sh" gunicorn_script %= env.server_root_dir context = {"gunicorn_script": gunicorn_script} add_upstart_task(filename, context)
def add_gunicorn_service(): """ Deploys a gunicorn configuration file. """ # deploys the gunicorn script first add_gunicorn_script() filename = '%s/fabfile/templates/django.conf' filename %= env.local_root_dir gunicorn_script = '%s/gunicorn.sh' gunicorn_script %= env.server_root_dir context = {'gunicorn_script': gunicorn_script} add_upstart_task(filename, context)
def add_gunicorn_service(): """ Deploys an upstart service for gunicorn. """ # deploys the gunicorn config file add_gunicorn_conf() filename = '{}/fabfile/templates/gunicorn_upstart.conf' filename = filename.format(env.local_root_dir) context = { 'prefix': env.prefix, 'server_root_dir': env.server_root_dir, 'user': env.user, } add_upstart_task(filename, context)