BTHLABS-63: Production deployment workflow

This commit is contained in:
2025-11-06 20:34:44 +00:00
parent d8bbe57b17
commit e800d0c16c
42 changed files with 786 additions and 97 deletions

View File

@@ -17,6 +17,9 @@ MIDDLEWARE = [
'whitenoise.middleware.WhiteNoiseMiddleware',
]
SESSION_COOKIE_SAMESITE = 'Lax'
SESSION_COOKIE_SECURE = False
STORAGES['staticfiles'] = { # noqa: F405
'BACKEND': 'whitenoise.storage.CompressedManifestStaticFilesStorage',
}

View File

@@ -115,6 +115,8 @@ STATIC_URL = 'static/'
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
LOGGING_LEVEL = os.environ.get('HOTPOCKET_BACKEND_LOGGING_LEVEL', 'INFO')
LOG_FORMAT = '%(asctime)s %(levelname)s [%(name)s] [%(request_id)s] (%(funcName)s:%(lineno)s) %(message)s'
LOGGING = {
'version': 1,
@@ -149,17 +151,17 @@ LOGGING = {
'loggers': {
'hotpocket_backend': {
'handlers': ['hotpocket'],
'level': 'INFO',
'level': LOGGING_LEVEL,
'propagate': False,
},
'hotpocket_common': {
'handlers': ['hotpocket'],
'level': 'INFO',
'level': LOGGING_LEVEL,
'propagate': False,
},
'hotpocket_soa': {
'handlers': ['hotpocket'],
'level': 'INFO',
'level': LOGGING_LEVEL,
'propagate': False,
},
'django': {