Skip to content

Commit

Permalink
Change the default root directory for prod files
Browse files Browse the repository at this point in the history
  • Loading branch information
aahnik committed Dec 30, 2024
1 parent e1deba4 commit 3d4e1df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
python src/manage.py ensure_superuser &&
python src/manage.py runserver 0.0.0.0:8000"
volumes:
- .:/app
- unison:/app
ports:
- "${APP_BIND_PORT:-8234}:8000"
env_file:
Expand Down Expand Up @@ -41,3 +41,4 @@ networks:

volumes:
postgres_data:
unison:
2 changes: 1 addition & 1 deletion src/temple_web/myconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class PaymentGatewayConfig:
class MyDjangoSettings:
DEBUG = config("DEBUG", default=False, cast=bool)
PROD = config("PROD", default=False, cast=bool)
PROD_FILES_ROOT = config("PROD_FILES_ROOT", default="/var/www/", cast=str)
PROD_FILES_ROOT = config("PROD_FILES_ROOT", default="/app/data/", cast=str)
PROD_DOMAIN = config("PROD_DOMAIN", cast=str)
SECRET_KEY = config("SECRET_KEY", cast=str)
MORE_ALLOWED_HOSTS = config("MORE_ALLOWED_HOSTS", cast=Csv(), default="127.0.0.1")
Expand Down

0 comments on commit 3d4e1df

Please sign in to comment.