make migrations in docker-entrypoint
All checks were successful
CI-pipeline / linters (pull_request) Successful in 38s
All checks were successful
CI-pipeline / linters (pull_request) Successful in 38s
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user