feat: Implement Dockerized multi-tenant Django application with initial setup for database, migrations, and superuser creation.
This commit is contained in:
@@ -225,7 +225,8 @@ STATICFILES_DIRS = [BASE_DIR / 'static']
|
||||
|
||||
# В production используем внешнюю директорию для nginx
|
||||
if not DEBUG:
|
||||
STATIC_ROOT = '/Volume1/DockerAppsData/npm/data/static/'
|
||||
# Внутри контейнера путь всегда /app/staticfiles (куда мы смонтировали volume)
|
||||
STATIC_ROOT = BASE_DIR / 'staticfiles'
|
||||
else:
|
||||
STATIC_ROOT = BASE_DIR / 'staticfiles'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user