Skip to content

Commit ebc77a5

Browse files
authored
Merge pull request #216 from dtinit/GCP/fix-static-url-staging
GCP: adding correct GSBUCKET path for stating
2 parents 188781a + c959d8a commit ebc77a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

testbed/settings/staging.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@
1313
# Update the STORAGES configuration with the staging bucket
1414
for key in STORAGES:
1515
STORAGES[key]["OPTIONS"]["bucket_name"] = GS_BUCKET_NAME
16+
17+
# Update URLs to use staging bucket
18+
STATIC_URL = f'https://storage.googleapis.com/{GS_BUCKET_NAME}/static/'
19+
MEDIA_URL = f'https://storage.googleapis.com/{GS_BUCKET_NAME}/media/'

0 commit comments

Comments
 (0)