Skip to content

Commit

Permalink
Hack to generate google application cred from env
Browse files Browse the repository at this point in the history
  • Loading branch information
bodhish authored Aug 22, 2023
1 parent 2b8ed4e commit d103631
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compose/production/django/start
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ set -o errexit
set -o pipefail
set -o nounset

if [[ -n "${GOOGLE_APPLICATION_CREDENTIALS_B64:-}" ]]; then
echo "${GOOGLE_APPLICATION_CREDENTIALS_B64}" | base64 -d > gc_credential.json
fi

python /app/manage.py collectstatic --noinput
python /app/manage.py migrate
Expand Down

0 comments on commit d103631

Please sign in to comment.