Skip to content

Commit af1fc43

Browse files
committed
fix: static folder
1 parent 61f5f08 commit af1fc43

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

.deploy/static.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"artifactUrl": "REPLACE_IN_PIPELINE",
3-
"assetsPrefix": "REPLACE_IN_PIPELINE"
3+
"assetsPrefix": "REPLACE_IN_PIPELINE",
4+
"bucket": "REPLACE_IN_PIPELINE"
45
}

Pipfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
url = "https://pypi.org/simple"
33
verify_ssl = true
44
name = "pypi"
5-
65
## ℹ️ HOW-TO: Make the python-package editable.
76
#
87
# 1. Comment out the non-editable codeforlife package under [packages].
@@ -25,6 +24,7 @@ name = "pypi"
2524
[packages]
2625
codeforlife = "==0.23.0"
2726
# 🚫 Don't add [packages] below that are inherited from the CFL package.
27+
django-storages = {version = "==1.14.4", extras = ["s3"]}
2828

2929
[dev-packages]
3030
codeforlife = {version = "==0.23.0", extras = ["dev"]}

Pipfile.lock

+12-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

settings.py

+5
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,8 @@
6060
# https://docs.djangoproject.com/en/3.2/howto/static-files/
6161

6262
STATIC_ROOT = get_static_root(BASE_DIR)
63+
64+
# TODO: move to cfl package
65+
AWS_STORAGE_BUCKET_NAME = "use1-static-dev-725778237416"
66+
STATIC_URL = f"https://{AWS_STORAGE_BUCKET_NAME}.s3.amazonaws.com/assets/v1/dev/atm/cflcontributorbackend"
67+
DEFAULT_FILE_STORAGE = "storages.backends.s3.S3Storage"

0 commit comments

Comments
 (0)