run('mkdir -p %(app_path)s' % env, pty=True)
run('%(virtualenv)s %(app_path)s/ve' % env, pty=True)
run('mkdir -p %(app_path)s/releases %(app_path)s/packages' % env, pty=True)
run('mkdir -p %(app_path)s' % env, pty=True)
run('%(virtualenv)s %(app_path)s/ve' % env, pty=True)
run('mkdir -p %(app_path)s/releases %(app_path)s/packages' % env, pty=True)
require('app_path', 'project_name')
template = '%(project_name)s/localsettings.py.template'
if not exists(template):
require('app_path', 'project_name')
template = '%(project_name)s/localsettings.py.template'
if not exists(template):
env.secret_key = '' # sth random
files.upload_template(template, '%(app_path)s/localsettings.py.sample' % env, env)
env.secret_key = '' # sth random
files.upload_template(template, '%(app_path)s/localsettings.py.sample' % env, env)
require('app_path', 'project_name')
template = '%(project_name)s/nginx.template'
if not exists(template):
require('app_path', 'project_name')
template = '%(project_name)s/nginx.template'
if not exists(template):
files.upload_template(template, '%(app_path)s/nginx.sample' % env, env)
def upload_gunicorn_sample():
files.upload_template(template, '%(app_path)s/nginx.sample' % env, env)
def upload_gunicorn_sample():
require('app_path', 'project_name')
template = '%(project_name)s/gunicorn.template'
if not exists(template):
require('app_path', 'project_name')
template = '%(project_name)s/gunicorn.template'
if not exists(template):
files.upload_template(template, '%(app_path)s/gunicorn.sample' % env, env)
def upload_tar_from_git():
files.upload_template(template, '%(app_path)s/gunicorn.sample' % env, env)
def upload_tar_from_git():