|
|
|
@ -69,9 +69,9 @@ templates = { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
def _print(output): |
|
|
|
def _print(output): |
|
|
|
print () |
|
|
|
print |
|
|
|
print ('%s' % output) |
|
|
|
print '%s' % output |
|
|
|
print () |
|
|
|
print |
|
|
|
|
|
|
|
|
|
|
|
def print_command(command): |
|
|
|
def print_command(command): |
|
|
|
_print(blue("$ ", bold=True) + |
|
|
|
_print(blue("$ ", bold=True) + |
|
|
|
@ -173,7 +173,7 @@ def upload_template_and_reload(name): |
|
|
|
owner = template_settings.get("owner") |
|
|
|
owner = template_settings.get("owner") |
|
|
|
mode = template_settings.get("mode") |
|
|
|
mode = template_settings.get("mode") |
|
|
|
|
|
|
|
|
|
|
|
print ('%s to %s' % (local_path, remote_path)) |
|
|
|
print '%s to %s' % (local_path, remote_path) |
|
|
|
|
|
|
|
|
|
|
|
upload_template(local_path, remote_path, env, use_sudo=False, backup=False) |
|
|
|
upload_template(local_path, remote_path, env, use_sudo=False, backup=False) |
|
|
|
|
|
|
|
|
|
|
|
@ -271,6 +271,7 @@ def create(): |
|
|
|
""" |
|
|
|
""" |
|
|
|
Stages the application on the server |
|
|
|
Stages the application on the server |
|
|
|
""" |
|
|
|
""" |
|
|
|
|
|
|
|
sudo('supervisorctl stop all') |
|
|
|
sudo('rm -r -f %s' % env.project_path) |
|
|
|
sudo('rm -r -f %s' % env.project_path) |
|
|
|
with cd('/var'): |
|
|
|
with cd('/var'): |
|
|
|
run('mkdir -p www') |
|
|
|
run('mkdir -p www') |
|
|
|
|