Skip to content

Commit

Permalink
add gcp_project gcp_region env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
devxpy committed Jun 26, 2024
1 parent 4330466 commit 8d4e4fb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ APP_BASE_URL=http://localhost:3000
API_BASE_URL=http://localhost:8080
ADMIN_BASE_URL=http://localhost:8000

GCP_PROJECT=dara-c1b52
GCP_REGION=us-central1
GS_BUCKET_NAME=dara-c1b52.appspot.com

PGHOST=127.0.0.1
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,10 @@ jobs:
APP_BASE_URL: http://localhost:3000
API_BASE_URL: http://localhost:8080
ADMIN_BASE_URL: http://localhost:8000
GCP_PROJECT: ${{ env.GCP_PROJECT }}
GCP_REGION: $${{ env.GCP_REGION }}
GS_BUCKET_NAME: $${{ env.GS_BUCKET_NAME }}
GOOGLE_APPLICATION_CREDENTIALS_JSON: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_JSON }}
GS_BUCKET_NAME: ${{ secrets.GS_BUCKET_NAME }}
STRIPE_SECRET_KEY: ${{ secrets.STRIPE_SECRET_KEY }}
ELEVEN_LABS_API_KEY: ${{ secrets.ELEVEN_LABS_API_KEY }}
AZURE_SPEECH_REGION: ${{ secrets.AZURE_SPEECH_REGION }}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
- Firebase Authentication Admin
- Storage Admin
5. Create and Download a JSON Key for this service account and save it to the project root as `serviceAccountKey.json`.
6. Add your project & bucket name to `.env`

* Run tests to see if everything is working fine:
```
Expand Down
3 changes: 1 addition & 2 deletions daras_ai_v2/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,7 @@

GCP_PROJECT = config("GCP_PROJECT", default="dara-c1b52")
GCP_REGION = config("GCP_REGION", default="us-central1")

GS_BUCKET_NAME = config("GS_BUCKET_NAME", default="")
GS_BUCKET_NAME = config("GS_BUCKET_NAME", default="dara-c1b52.appspot.com")
GS_MEDIA_PATH = config("GS_MEDIA_PATH", default="daras_ai/media")

GOOGLE_CLIENT_ID = config("GOOGLE_CLIENT_ID", default="")
Expand Down

0 comments on commit 8d4e4fb

Please sign in to comment.