Skip to content

Commit

Permalink
Fixed terminus issue.
Browse files Browse the repository at this point in the history
No matter what is passed, dev is ran first and should not attempt to deploy.

Code was attempting to run a deploy on dev when ‘test’ or ‘live’ were passed.

Checked instead that on the first loop, always run the dev version. All other loops run the deploy step version. This fixes the error.
  • Loading branch information
kazajhodo committed Jan 20, 2020
1 parent 9fa8665 commit 4f4c3e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/terminus
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ if type $terminus >/dev/null 2>&1; then
i=0
while [[ $i -le $count ]]
do
if [[ $env == 'dev' ]]; then
# 0 is always dev, on dev never attempt to deploy.
if [[ $i == 0 ]]; then
$terminus drush "$site.${steps[$i]}" updb && $terminus drush "$site.${steps[$i]}" cr && $terminus drush "$site.${steps[$i]}" -- cim -y
else
$terminus env:deploy "$site.${steps[$i]}" && $terminus drush "$site.${steps[$i]}" updb && $terminus drush "$site.${steps[$i]}" cr && $terminus drush "$site.${steps[$i]}" -- cim -y
Expand Down

0 comments on commit 4f4c3e1

Please sign in to comment.