Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
fix(image): dont migrate in cmd.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Apr 15, 2024
1 parent 12622f0 commit fe56d6f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ RUN apk update --no-cache && \

USER 1001

CMD ["sh", "-c", "wait4ports -s 15 tcp://${DJANGO_DATABASE_HOST:db}:${DJANGO_DATABASE_PORT:5432}; ./cmd.sh --autoreload --static"]
CMD ["sh", "-c", "wait4ports -s 15 tcp://${DJANGO_DATABASE_HOST:db}:${DJANGO_DATABASE_PORT:5432}; manage.py migrate --no-input && ./cmd.sh --autoreload --static"]

FROM base as prod

Expand Down
1 change: 0 additions & 1 deletion cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ manage.py collectstatic --noinput

set -e

manage.py migrate --no-input
manage.py serve --static --port 8080 --req-queue-len "${HURRICANE_REQ_QUEUE_LEN:-250}" "$@"

0 comments on commit fe56d6f

Please sign in to comment.