Skip to content

Commit

Permalink
chore: Update Docker and Django server configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmorley15 committed Jul 9, 2024
1 parent 7bb70b8 commit d3516b1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
paths:
- 'backend/**'
- "backend/**"

env:
IMAGE_NAME: "adventurelog-backend"
Expand Down
4 changes: 3 additions & 1 deletion backend/server/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ PGPASSWORD=''

SECRET_KEY='pleasechangethisbecauseifyoudontitwillbeverybadandyouwillgethackedinlessthanaminuteguaranteed'

PUBLIC_URL='http://127.0.0.1:8000'
PUBLIC_URL='http://127.0.0.1:8000'

DEBUG=True
2 changes: 1 addition & 1 deletion backend/server/demo/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
SECRET_KEY = getenv('SECRET_KEY')

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = getenv('DEBUG', 'True') == 'True'

# ALLOWED_HOSTS = [
# 'localhost',
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ services:
- DJANGO_ADMIN_PASSWORD=admin
- [email protected]
- PUBLIC_URL='http://127.0.0.1:8000'
- DEBUG=False
ports:
- "8000:8000"
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion frontend/.env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
PUBLIC_SERVER_URL=http://127.0.0.1:8000
BODY_SIZE_LIMIT=Infinity
BODY_SIZE_LIMIT=Infinity

0 comments on commit d3516b1

Please sign in to comment.