Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
littlewhywhat committed Aug 27, 2021
1 parent c42390d commit 3cfdc5f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@
}
},
"name": "foosball-rating",
"scripts": {
"postdeploy": "cd backend && PGSSLMODE=require npm run create-test-db"
},
"stack": "container"
}
6 changes: 6 additions & 0 deletions heroku.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@ build:

run:
web: bash ./start.sh
release:
image: web
command:
- cd backend && PGSSLMODE=require npm run create-schema
run:
web: npm start
3 changes: 0 additions & 3 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@ set -eu

PROXY_PORT=$PORT
unset PORT
export NODE_TLS_REJECT_UNAUTHORIZED=0
export DATABASE_URL="${DATABASE_URL}?sslmode=require"

cd backend
npm run create-test-db || true
npm run create-schema || true
npm start &
cd ..

Expand Down

0 comments on commit 3cfdc5f

Please sign in to comment.