Skip to content

Commit

Permalink
Add show migrations and run seeds into makefile (RedHatInsights#1255)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpichler authored Dec 19, 2024
1 parent 04dbda2 commit 003a1dc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,16 @@ run-migrations:
shell:
DJANGO_READ_DOT_ENV_FILE=True $(PYTHON) $(PYDIR)/manage.py shell

seeds:
DJANGO_READ_DOT_ENV_FILE=True $(PYTHON) $(PYDIR)/manage.py seeds

show-migrations:
DJANGO_READ_DOT_ENV_FILE=True $(PYTHON) $(PYDIR)/manage.py showmigrations api management

urls:
DJANGO_READ_DOT_ENV_FILE=True $(PYTHON) $(PYDIR)/manage.py show_urls


create-test-db-file: run-migrations
sleep 1
DJANGO_READ_DOT_ENV_FILE=True $(PYTHON) $(PYDIR)/manage.py runserver > /dev/null 2>&1 &
Expand Down

0 comments on commit 003a1dc

Please sign in to comment.