Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c74c7e1

Browse files
committed
Merge pull request alphagov#193 from alphagov/yet-more-emergency-publishing
More emergency publishing improvements
2 parents 55087a0 + eae5fed commit c74c7e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

campaigns.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ def deploy_banner(application):
7878
content = env['template_contents']
7979
put(StringIO.StringIO(content), remote_filename, use_sudo=True, mirror_local_mode=True)
8080
sudo('chown deploy:deploy %s' % remote_filename)
81+
execute(app.restart, application)
8182
if application == 'static':
8283
clear_static_generated_templates()
83-
execute(app.reload, application)
8484

8585

8686
def remove_banner(application):
@@ -92,9 +92,9 @@ def remove_banner(application):
9292
for remote_filename in remote_filenames:
9393
put(StringIO.StringIO(content), remote_filename, use_sudo=True, mirror_local_mode=True)
9494
sudo('chown deploy:deploy %s' % remote_filename)
95+
execute(app.restart, application)
9596
if application == 'static':
9697
clear_static_generated_templates()
97-
execute(app.reload, application)
9898

9999

100100
@task

0 commit comments

Comments
 (0)