Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sslmode parameter to psql conn string #177

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
npm ci
cp .env.local.example .env
- name: e2e
uses: cypress-io/github-action@v1
uses: cypress-io/github-action@v2.3.1
with:
browser: chrome
headless: true
Expand Down
3 changes: 0 additions & 3 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,5 @@
}
},
"name": "foosball-rating",
"scripts": {
"postdeploy": "cd backend && npm run create-test-db"
},
"stack": "container"
}
107 changes: 63 additions & 44 deletions backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dependencies": {
"dotenv": "^7.0.0",
"express": "^4.16.4",
"pg": "^7.8.1",
"pg": "^8",
"slackbots": "^1.2.0"
},
"devDependencies": {
Expand Down
7 changes: 2 additions & 5 deletions heroku.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
build:
docker:
web: Dockerfile
release:
image: web
command:
- cd backend && npm run create-schema

run:
web: npm start
web: bash ./start.sh
5 changes: 5 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
#!/bin/bash

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