-def upload_nginx_sample():
- "Fill out nginx conf template and upload as a sample."
- print '>>> upload nginx template'
- require('app_path', 'project_name')
- template = '%(project_name)s/nginx.template'
- if not exists(template):
- template = join(dirname(abspath(__file__)), 'templates/nginx.template')
- files.upload_template(template, '%(app_path)s/nginx.sample' % env, env)
-
-def upload_gunicorn_sample():
- "Fill out gunicorn conf template and upload as a sample."
- print '>>> upload gunicorn template'
- require('app_path', 'project_name')
- template = '%(project_name)s/gunicorn.template'
- if not exists(template):
- template = join(dirname(abspath(__file__)), 'templates/gunicorn.template')
- files.upload_template(template, '%(app_path)s/gunicorn.sample' % env, env)