Files
backend/Makefile
2022-08-30 19:50:21 -03:00

53 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:
@poetry run python manage.py runserver 0.0.0.0:7788
celery:
@poetry 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:
@poetry run python manage.py shell
makemigrations:
@poetry run python manage.py makemigrations
migrate:
@poetry run python manage.py migrate
collectstatic:
@poetry run python manage.py collectstatic
blue:
@poetry run blue .
isort:
@poetry run isort .