Skip to content

Commit

Permalink
fix: more production settings and temp build
Browse files Browse the repository at this point in the history
  • Loading branch information
olemathias committed Sep 12, 2024
1 parent c44845e commit d353dc8
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- 'main'
- 'automatic-build'

jobs:
ci:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- '*'
- '!main'
- '!automatic-build'
workflow_call:

jobs:
Expand Down
4 changes: 2 additions & 2 deletions tgno/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,6 @@

# Base URL to use when referring to full URLs within the Wagtail admin backend -
# e.g. in notification emails. Don't include '/admin' or a trailing slash
WAGTAILADMIN_BASE_URL = env("WAGTAILADMIN_BASE_URL", "example.com")
WAGTAILADMIN_BASE_URL = env("WAGTAILADMIN_BASE_URL", "http://example.com")

WAGTAILAPI_BASE_URL = env("WAGTAILAPI_BASE_URL", "example.com")
WAGTAILAPI_BASE_URL = env("WAGTAILAPI_BASE_URL", "http://example.com")
17 changes: 17 additions & 0 deletions tgno/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,23 @@
DEBUG = False
SECRET_KEY = env("SECRET_KEY")
ALLOWED_HOSTS = env.list("ALLOWED_HOSTS")
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"

LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"handlers": {
"console": {
"class": "logging.StreamHandler",
},
},
"loggers": {
"django": {
"handlers": ["console"],
"level": env("DJANGO_LOG_LEVEL", "INFO"),
},
},
}

try:
from .local import *
Expand Down

0 comments on commit d353dc8

Please sign in to comment.