Skip to content

Commit

Permalink
Fix running prod migrations locally first before upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Gilmer committed Apr 10, 2019
1 parent 567d6ec commit af38e60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/run-prod-migrations
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
set -eu -o pipefail

# Required env vars for apply-secure-migration.sh
export SECURE_MIGRATION_SOURCE=s3
export SECURE_MIGRATION_SOURCE=${SECURE_MIGRATION_SOURCE:-s3}
export SECURE_MIGRATION_BUCKET_NAME="${SECURE_MIGRATION_BUCKET_NAME:-transcom-ppp-app-prod-us-west-2}"
export PSQL_SSL_MODE=disable
export DB_NAME="${DB_NAME_PROD_MIGRATIONS:-prod_migrations}"
Expand Down
4 changes: 2 additions & 2 deletions scripts/upload-secure-migration
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ ${aws_command} s3 ls "${aws_bucket_prefix}${environments[0]}${aws_bucket_suffix}

echo "Testing migrations ... (This could be several minutes!)"

make run_prod_migrations

SECURE_MIGRATION_SOURCE=local make run_prod_migrations
exit 1
echo "Testing migrations was successful!"
echo

Expand Down

0 comments on commit af38e60

Please sign in to comment.