Last active
January 21, 2024 13:33
-
-
Save ericolvr/2d636dbd596ded67576992206522946a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ANSI color codes | |
COLOR_RESET=\033[0m | |
COLOR_BOLD=\033[1m | |
COLOR_GREEN=\033[32m | |
COLOR_YELLOW=\033[33m | |
help: | |
@echo "" | |
@echo " $(COLOR_YELLOW)Available targets:$(COLOR_RESET)" | |
@echo " $(COLOR_GREEN)start$(COLOR_RESET) - Start Docker Services" | |
@echo " $(COLOR_GREEN)down$(COLOR_RESET) - Down Docker Services" | |
@echo " $(COLOR_GREEN)stop$(COLOR_RESET) - Stop Docker Services" | |
@echo " $(COLOR_GREEN)migrations$(COLOR_RESET) - Run Django Makemigrations" | |
@echo " $(COLOR_GREEN)migrate$(COLOR_RESET) - Run Django Migrate" | |
@echo " $(COLOR_GREEN)user$(COLOR_RESET) - Run Django Createsuperuser" | |
@echo " $(COLOR_GREEN)migrate$(COLOR_RESET) - Django Run" | |
@echo "" | |
@echo "$(COLOR_YELLOW)Note:$(COLOR_RESET) Use 'make <target>' to execute a specific target." | |
@echo "" | |
start: | |
docker compose up -d | |
down: | |
docker compose down | |
stop: | |
docker compose stop | |
migrations: | |
python app/manage.py makemigrations | |
migrate: | |
python app/manage.py migrate | |
user: | |
python app/manage.py createsuperuser | |
run: | |
python app/manage.py runserver 0:9999 | |
.PHONY: help, start, down, stop, migrations, migrate, user, run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment