Files
backend/Makefile
Michel Wilhelm ff010739c4
Some checks failed
Build / Code quality (push) Failing after 23s
Updating Makefile
2025-02-04 15:46:54 -03:00

54 lines
2.3 KiB
Makefile
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
all: help
help:
@echo "―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――"
@echo " Comandos disponíveis "
@echo "―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――"
@echo "⭐️ help : Exibe esta mensagem"
@echo "⭐️ run : Executa a aplicação fora do docker"
@echo "⭐️ run-worker : Executa Celery"
@echo "⭐️ blue : Executa blue"
@echo "⭐️ isort : Executa isort"
@echo "⭐️ docker-run : Levanta toda a aplicação utilizando Docker"
@echo "⭐️ docker-run-app : Levanta apenas a aplicação utilizando Docker"
@echo "⭐️ docker-run-worker : Levanta apenas o Celery utilizando Docker"
@echo "⭐️ shell : Acessa o shell do Django"
@echo "⭐️ makemigrations : Gera as novas migrações de banco"
@echo "⭐️ migrate : Executa as novas migrações de banco"
@echo "⭐️ collectstatic : Atualiza os arquivos estáticos no bucket"
@echo "―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――"
run:
@uv run python manage.py runserver 0.0.0.0:7788
celery:
@uv run celery -A app worker -l INFO --concurrency=2 -Q default -E
docker-run:
@docker-compose up
docker-run-app:
@docker-compose up app
docker-run-worker:
@docker-compose up worker
shell:
@uv run python manage.py shell
makemigrations:
@uv run python manage.py makemigrations
migrate:
@uv run python manage.py migrate
collectstatic:
@uv run python manage.py collectstatic
lint:
@uv run ruff format .
@uv run ruff check .
fix-lint:
@uv run ruff check . --fix