Skip to content

Commit

Permalink
Don't only deploy to staging when deploying to live
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbacon committed May 9, 2019
1 parent d16f5ff commit eba22b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ def setup(environment, branch='master'):

@task
def deploy(environment, branch='master'):
env = setup(environment, branch)
if environment == 'live':
# Always deploy to staging first, thanks to our update
# workflow (below)
deploy('staging', branch=branch)
env = setup(environment, branch)

make_directory()
setup_sudo()
Expand Down

0 comments on commit eba22b3

Please sign in to comment.