Skip to content

Commit

Permalink
Add loadmenu to production commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpirix committed Oct 2, 2024
1 parent 30921e2 commit be6c7f7
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions dockerize/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,13 @@ exec:
@echo "------------------------------------------------------------------"
@docker compose -p $(PROJECT_ID) $(c)

loadmenu:
@echo
@echo "------------------------------------------------------------------"
@echo "Delete all simplemenu entries and load from fixtures/all_menu.json"
@echo "------------------------------------------------------------------"
@docker compose -p $(PROJECT_ID) exec uwsgi python manage.py clear_simplemenu
@docker compose -p $(PROJECT_ID) exec uwsgi python manage.py loaddata fixtures/all_menu.json
# ----------------------------------------------------------------------------
# D E V E L O P M E N T C O M M A N D S
# ----------------------------------------------------------------------------
Expand Down Expand Up @@ -237,11 +244,3 @@ dbseed:
@echo "Seed db with JSON data from /fixtures/*.json"
@echo "------------------------------------------------------------------"
@docker compose -p $(PROJECT_ID) exec devweb bash -c 'python manage.py loaddata fixtures/*.json'

loadmenu:
@echo
@echo "------------------------------------------------------------------"
@echo "Delete all simplemenu entries and load from fixtures/all_menu.json"
@echo "------------------------------------------------------------------"
@docker compose -p $(PROJECT_ID) devweb python manage.py clear_simplemenu
@docker compose -p $(PROJECT_ID) devweb python manage.py loaddata fixtures/all_menu.json

0 comments on commit be6c7f7

Please sign in to comment.