Skip to content

Commit

Permalink
Merge pull request #531 from iMMAP/fix/ci_django_cmd_error_2
Browse files Browse the repository at this point in the history
run django cmds in production env
  • Loading branch information
shtayeb authored Dec 30, 2024
2 parents ae3958b + 8c084df commit de913a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
git stash pop
poetry install --without dev || exit 1
make clear_cache settings=core.settings.production || exit 1
make migrate || exit 1
make migrate settings=core.settings.production || exit 1
make npm-install || exit 1
make npm-build || exit 1
make collectstatic settings=core.settings.production || exit 1
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ lint:
ruff format ./src
ruff check --select I --fix

settings ?= core.settings.local
.PHONY: migrate
migrate:
poetry run python src/manage.py migrate
poetry run python src/manage.py migrate --settings=${settings}

.PHONY: migrations
migrations:
Expand Down

0 comments on commit de913a9

Please sign in to comment.