Skip to content

Commit

Permalink
Merge pull request #391 from cityofaustin/sg-fix-heroku-db-message
Browse files Browse the repository at this point in the history
Patch Heroku Deployment Script
  • Loading branch information
sergiogcx authored Aug 12, 2021
2 parents f953ea6 + ce4bc08 commit 3f2ff41
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/aws-heroku-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@ function run_database_migration() {
echo "Endpoint: ${HASURA_SERVER_ENDPOINT}";
sleep 5;

# For the time being, we need to remove PostGIS from Heroku, it's not helping
print_header "Removing PostGIS from extensions";
sed --in-place '/create extension if not exists postgis/d' ./migrations/1599856186244_init/up.sql;
{
grep -rIno "create extension if not exists postgis" ./migrations/1599856186244_init/up.sql;
} || {
echo "PostGIS removed successfully.";
}

print_header "Checking the server is online";
wait_server_ready;

Expand Down

0 comments on commit 3f2ff41

Please sign in to comment.