Skip to content

Commit

Permalink
added: createsuperuser in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
chem1sto committed Aug 31, 2023
1 parent 327b800 commit 1cadcd1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ help: # Show help


.PHONY: runbot-init
runbot-init: deletedb rundb migrate filldb collectstatic runbot-db # Build and run Database Docker-image
runbot-init: deletedb rundb migrate filldb collectstatic createsuperuser runbot-db # Build and run Database Docker-image
@echo -e "$(COLOR_YELLOW)Starting initialization...$(COLOR_RESET)"
@source $$(poetry env info -p)/bin/activate

Expand Down Expand Up @@ -90,6 +90,10 @@ migrate: # Commit migrations to Database
@sleep 3;
@echo -e "$(COLOR_GREEN)Migrated$(COLOR_RESET)"

.PHONY: createsuperuser
createsuperuser:
@echo -e "$(COLOR_YELLOW)Creating Django superuser...$(COLOR_RESET)"
@poetry run python src/manage.py createsuperuser

.PHONY: run_tests
run_tests: run_unit_tests # Run all tests
Expand Down

0 comments on commit 1cadcd1

Please sign in to comment.