Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
gnthibault committed Nov 22, 2024
1 parent a599b70 commit d27fe07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy_gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ jobs:
poetry run python manage.py migrate
- id: 'collect_static'
run: |-
cd mytom
echo yes | poetry run python manage.py collectstatic
# Deploy comes from https://github.com/google-github-actions/deploy-cloudrun
- id: 'deploy'
Expand Down
4 changes: 2 additions & 2 deletions mytom/mytom/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@
name = f"projects/{project_id}/secrets/{settings_name}/versions/latest"
payload = client.access_secret_version(name=name).payload.data.decode("UTF-8")
env.read_env(io.StringIO(payload))
logger.info(f'env is {env}')
# logger.info(f'env is {env}')
else:
raise Exception("No local .env or GOOGLE_CLOUD_PROJECT detected. No secrets found.")

Expand All @@ -246,7 +246,7 @@
if os.getenv("USE_CLOUD_SQL_AUTH_PROXY", None):
DATABASES["default"]["HOST"] = "127.0.0.1"
DATABASES["default"]["PORT"] = 5432
logger.info(f'Database is {DATABASES}')
# logger.info(f'Database is {DATABASES}')
# django.db.connection.ensure_connection()

GS_BUCKET_NAME = env("GS_BUCKET_NAME")
Expand Down

0 comments on commit d27fe07

Please sign in to comment.