Merge pull request 'dev' (#11) from dev into main

Reviewed-on: #11
This commit is contained in:
2025-06-06 13:44:51 +03:00
3 changed files with 4 additions and 2 deletions

View File

@@ -5,7 +5,6 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY ./manage.py .
RUN ./manage.py makemigrations
# RUN ./manage.py migrate
COPY docker-entrypoint.sh .

View File

@@ -4,7 +4,10 @@
echo "Collect static files"
python manage.py collectstatic --noinput
# Apply database migrations
echo "Make migrations"
RUN ./manage.py makemigrations
echo "Apply database migrations"
python manage.py migrate

View File

@@ -24,7 +24,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = os.getenv("DJANGO_SECRET_KEY")
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = False
ALLOWED_HOSTS = ["localhost", "app.saccada.xyz"]