Skip to content

Commit

Permalink
Update push.local.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
robwild-affinitydigital authored Aug 14, 2024
1 parent 70efc77 commit 8188f75
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions devops/cf/push.local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ done

# Defaults that incorporate user defined values
DB_IMPORT=${DB_IMPORT:="$BUILD_DIR/$DB_DIR/$DB_NAME.sql"}
printf "DB Import path: $DB_IMPORT \n"

## Ensure an environment has been passed
if [[ $# -ne 1 ]]; then
Expand Down Expand Up @@ -243,7 +242,7 @@ elif [[ $ENV == 'staging' ]] || [[ $ENV =~ ^staging-.* ]]; then
-o "office-for-product-safety-and-standards" -s "primary-authority-register-staging"
else
cf login -a api.cloud.service.gov.uk -u $GOVUK_CF_USER -p $GOVUK_CF_PWD \
-o "office-for-product-safety-and-standards" -s "primary-authority-register-development"
-o office-for-product-safety-and-standards -s primary-authority-register-development
fi


Expand Down Expand Up @@ -559,7 +558,7 @@ if [[ $ENV != "production" ]] && [[ $DB_RESET ]]; then
tar --no-same-owner -zxvf $REMOTE_BUILD_DIR/$DB_DIR/$DB_NAME.tar.gz -C $REMOTE_BUILD_DIR/$DB_DIR && \
../vendor/bin/drush @par.paas sql:cli < $REMOTE_BUILD_DIR/$DB_DIR/$DB_NAME.sql && \
rm -f $REMOTE_BUILD_DIR/$DB_DIR/$DB_NAME.sql"

# Wait for database to be imported.
cf_poll_task $TARGET_ENV DB_IMPORT

Expand Down

0 comments on commit 8188f75

Please sign in to comment.