fix(makefile): improve generate-env command and script
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
- Fix bash error in generate_env.sh with proper environment variable handling - Add docker-compose command detection for better compatibility - Add generate-env-prod command with production warnings - Make generate-env non-interactive by default for easier automation - Add generate-env-interactive for when user input is needed - Expand .env.example with more configuration options - Add helpful production deployment warnings Resolves: 'make generate-env generates nonsense' issue
This commit is contained in:
16
.env.example
16
.env.example
@@ -17,4 +17,18 @@ POSTGRES_USER=links_user
|
||||
POSTGRES_PASSWORD=links_password
|
||||
|
||||
# Frontend настройки
|
||||
NEXT_PUBLIC_API_URL=http://localhost:8000
|
||||
NEXT_PUBLIC_API_URL=http://localhost:8000
|
||||
|
||||
# Опциональные настройки
|
||||
# DJANGO_EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend
|
||||
# DJANGO_EMAIL_HOST=
|
||||
# DJANGO_EMAIL_PORT=587
|
||||
# DJANGO_EMAIL_HOST_USER=
|
||||
# DJANGO_EMAIL_HOST_PASSWORD=
|
||||
# DJANGO_EMAIL_USE_TLS=True
|
||||
|
||||
# Для продакшена
|
||||
# DJANGO_SECURE_SSL_REDIRECT=True
|
||||
# DJANGO_SECURE_HSTS_SECONDS=31536000
|
||||
# DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS=True
|
||||
# DJANGO_SECURE_HSTS_PRELOAD=True
|
||||
Reference in New Issue
Block a user