Compare commits

..

2 Commits

Author SHA1 Message Date
fb54b4e120 Merge pull request 'chore: configure for local development environment' (#18) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/18
2025-11-23 18:27:22 +00:00
98962caafb chore: configure for local development environment
- Set ALLOWED_HOSTS to accept all hosts for easier local testing
- Update Docker port from 8080 to 8000 (Django default)
- Adjust Gunicorn binding to match new port configuration

This simplifies local development setup by using standard Django
conventions and removing host restrictions. The previous specific
host configuration can be restored for production deployment.
2025-11-23 18:26:44 +00:00
2 changed files with 4 additions and 6 deletions

View File

@ -11,10 +11,8 @@ SECRET_KEY = os.getenv('JWT_SECRET', 'django-insecure-fallback-secret-key')
DEBUG = os.getenv('DEBUG', 'False').lower() == 'true'
ALLOWED_HOSTS = [
'http://r0g84wkoc4cwoo0gckss88ow.72.61.138.80.sslip.io',
'localhost',
]
ALLOWED_HOSTS = ["*"]

View File

@ -24,7 +24,7 @@ COPY . .
RUN python manage.py collectstatic --noinput
# Expose port
EXPOSE 8080
EXPOSE 8000
# Run migrations and start Gunicorn
CMD sh -c "python manage.py migrate && gunicorn booking_system.wsgi:application --bind 0.0.0.0:8080 --workers 3"
CMD sh -c "python manage.py migrate && gunicorn booking_system.wsgi:application --bind 0.0.0.0:8000 --workers 3"