Skip to content
Snippets Groups Projects
Commit 549950b2 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Only run ats-cache-purge on production

parent 11bba1af
No related branches found
No related tags found
No related merge requests found
...@@ -140,12 +140,13 @@ def _run_migrate(): ...@@ -140,12 +140,13 @@ def _run_migrate():
@runs_once @runs_once
def _post_deploy(): def _post_deploy():
# clear frontend cache # clear frontend cache only on production
run( if 'production' in env.effective_roles:
'for host in $(echo $CFG_HOSTNAMES | tr \',\' \' \'); do echo "Purge cache for $host";' run(
'ats-cache-purge $host; ' 'for host in $(echo $CFG_HOSTNAMES | tr \',\' \' \'); do echo "Purge cache for $host";'
'done' 'ats-cache-purge $host; '
) 'done'
)
# update search index # update search index
run('django-admin update_index') run('django-admin update_index')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment