Commit 16bff396 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

Fix: run archive_dump from local

parent c6b7e1c3
...@@ -130,16 +130,14 @@ def site_install(): ...@@ -130,16 +130,14 @@ def site_install():
@task @task
@roles('docker') @roles('local')
def archive_dump(role='docker'): def archive_dump(role='local'):
""" """
Archive the platform for release or deployment. Archive the platform for release or deployment.
:param role Default 'role' where to run the task :param role Default 'role' where to run the task
""" """
role = 'docker' with h.fab_cd(role, env.site_root):
with h.fab_cd(role, env.docker_site_root):
platform = '{}-{}.tar.gz'.format(env.project_name, datetime.now().strftime('%Y%m%d_%H%M%S')) platform = '{}-{}.tar.gz'.format(env.project_name, datetime.now().strftime('%Y%m%d_%H%M%S'))
print(green('Cleaning previous archives')) print(green('Cleaning previous archives'))
h.fab_run(role, 'rm -f {}/*.tar.gz'.format(env.builddir)) h.fab_run(role, 'rm -f {}/*.tar.gz'.format(env.builddir))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment