Skip to content

Commit

Permalink
static storage
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmorley15 committed Jul 9, 2024
1 parent e33654a commit 8c9bb6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions backend/server/demo/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@
"staticfiles": {
"BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage",
},
"default": {
"BACKEND": "django.core.files.storage.FileSystemStorage",
}
}

AUTH_USER_MODEL = 'users.CustomUser'
Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.9"

services:
web:
# build: ./frontend/
#build: ./frontend/
image: ghcr.io/seanmorley15/adventurelog-frontend:latest
environment:
- PUBLIC_SERVER_URL=http://server:8000
Expand All @@ -23,8 +23,8 @@ services:
- postgres_data:/var/lib/postgresql/data/

server:
build: ./backend/
#image: ghcr.io/seanmorley15/adventurelog-backend:latest
#build: ./backend/
image: ghcr.io/seanmorley15/adventurelog-backend:latest
environment:
- PGHOST=db
- PGDATABASE=database
Expand All @@ -35,7 +35,7 @@ services:
- DJANGO_ADMIN_PASSWORD=admin
- DJANGO_ADMIN_EMAIL=admin@example.com
- PUBLIC_URL='http://127.0.0.1:81'
- DEBUG=True
- DEBUG=False
ports:
- "8000:8000"
depends_on:
Expand Down

0 comments on commit 8c9bb6d

Please sign in to comment.