From 6ea70ee6694fee14a30f33caf83d75766f7c8217 Mon Sep 17 00:00:00 2001 From: saani Date: Sat, 22 Nov 2025 17:26:52 +0000 Subject: [PATCH] $$# --- Nixpacks.toml | 13 +++++++++++++ booking_system/settings.py | 7 ++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 Nixpacks.toml diff --git a/Nixpacks.toml b/Nixpacks.toml new file mode 100644 index 0000000..e422b39 --- /dev/null +++ b/Nixpacks.toml @@ -0,0 +1,13 @@ +[phases.setup] +cmds = [ + "pip install -r requirements.txt", +] + +[phases.build] +cmds = [ + "python manage.py collectstatic --noinput", + "python manage.py migrate", +] + +[start] +cmd = "gunicorn booking_system.wsgi:application --bind 0.0.0.0:$PORT" \ No newline at end of file diff --git a/booking_system/settings.py b/booking_system/settings.py index 4894377..1e4dd0e 100644 --- a/booking_system/settings.py +++ b/booking_system/settings.py @@ -11,7 +11,12 @@ SECRET_KEY = os.getenv('JWT_SECRET', 'django-insecure-fallback-secret-key') DEBUG = os.getenv('DEBUG', 'False').lower() == 'true' -ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS', 'localhost,127.0.0.1').split(',') +ALLOWED_HOSTS = [ + 'bocwoswwgks0gc8c84sgwkso.72.61.138.80.sslip.io', + '72.61.138.80', + 'localhost', + '127.0.0.1', +]