@@ -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 .
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user