@@ -5,7 +5,6 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||||||
|
|
||||||
COPY ./manage.py .
|
COPY ./manage.py .
|
||||||
|
|
||||||
RUN ./manage.py makemigrations
|
|
||||||
# RUN ./manage.py migrate
|
# RUN ./manage.py migrate
|
||||||
|
|
||||||
COPY docker-entrypoint.sh .
|
COPY docker-entrypoint.sh .
|
||||||
|
|||||||
@@ -4,7 +4,10 @@
|
|||||||
echo "Collect static files"
|
echo "Collect static files"
|
||||||
python manage.py collectstatic --noinput
|
python manage.py collectstatic --noinput
|
||||||
|
|
||||||
|
|
||||||
# Apply database migrations
|
# Apply database migrations
|
||||||
|
echo "Make migrations"
|
||||||
|
RUN ./manage.py makemigrations
|
||||||
echo "Apply database migrations"
|
echo "Apply database migrations"
|
||||||
python manage.py migrate
|
python manage.py migrate
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
|||||||
SECRET_KEY = os.getenv("DJANGO_SECRET_KEY")
|
SECRET_KEY = os.getenv("DJANGO_SECRET_KEY")
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True
|
DEBUG = False
|
||||||
|
|
||||||
ALLOWED_HOSTS = ["localhost", "app.saccada.xyz"]
|
ALLOWED_HOSTS = ["localhost", "app.saccada.xyz"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user