Skip to content

Commit f6ee5ca

Browse files
authored
Merge pull request #1078 from thecourseforum/dev
re-trigger prod ci
2 parents 19ffbad + 5e3d079 commit f6ee5ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tcf_core/settings/base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@
5656
]
5757

5858
# Dev does not use S3 buckets
59-
if env.str("ENVIRONMENT") == "production":
59+
if env.str("ENVIRONMENT") == "dev":
60+
STATIC_URL = '/static/'
61+
STATIC_ROOT = os.path.join(BASE_DIR, "static")
62+
else:
6063
AWS_ACCESS_KEY_ID = env.str("AWS_ACCESS_KEY_ID")
6164
AWS_SECRET_ACCESS_KEY = env.str("AWS_SECRET_ACCESS_KEY")
6265
AWS_STORAGE_BUCKET_NAME = env.str("AWS_STORAGE_BUCKET_NAME")
@@ -74,9 +77,6 @@
7477
"BACKEND": "storages.backends.s3.S3Storage",
7578
},
7679
}
77-
else:
78-
STATIC_URL = '/static/'
79-
STATIC_ROOT = os.path.join(BASE_DIR, "static")
8080

8181
# COLLECTFAST_THREADS = 20
8282
# COLLECTFAST_STRATEGY = "collectfast.strategies.boto3.Boto3Strategy"

0 commit comments

Comments
 (0)