diff --git a/README.md b/README.md index c132ad0..5f802e7 100644 --- a/README.md +++ b/README.md @@ -96,12 +96,12 @@ These variables should all be applied to the frontend. These variables should all be applied to the backend. - `GAMMA_SECRET`: Default `secret`. -- `GAMMA_CLIENT_ID`, `GAMMA_CLIENT_SECRET`: Id and secret of the client from Gamma. Default is `id`/`secret`. +- `GAMMA_CLIENT_ID`: Id of the client from Gamma. Default is `id`. - `GAMMA_AUTHORIZATION_URI`: - - Should be the full URL, probably: `https://songbook.chalmers.it/api/oauth/authorize`. + - Should be the full URL, probably: `https://gamma.chalmers.it/api/oauth/authorize`. - Default: `http://localhost:8081/api/oauth/authorize`. - `GAMMA_REDIRECT_URI`: - - Should as well be the full URL, probably: `https://gamma.chalmers.it/api/auth/account/callback`. + - Should as well be the full URL, probably: `https://songbook.chalmers.it/auth/account/callback`. - Default `http://localhost:3001/auth/account/callback`. - `GAMMA_ME_URI`: - Yep, full URL, probably: `https://gamma.chalmers.it/api/users/me` diff --git a/backend/start.sh b/backend/start.sh index 872ae16..5e35db8 100644 --- a/backend/start.sh +++ b/backend/start.sh @@ -1,4 +1,4 @@ -wait_for_postgres() ( +wait_for_postgres() { first_iteration=true while ! pg_isready -h "$SONGBOOK_POSTGRES_HOST" -p "$SONGBOOK_POSTGRES_PORT" -q; do if [ -n "$first_iteration" ]; then @@ -11,7 +11,7 @@ wait_for_postgres() ( sleep 1 done if [ -z "$first_iteration" ]; then echo; fi -) +} wait_for_postgres python -u src/app.py \ No newline at end of file