|
@ -3,20 +3,9 @@ USER = gavaniwast |
|
|
|
|
|
|
|
|
all: clean dev |
|
|
all: clean dev |
|
|
|
|
|
|
|
|
prod: |
|
|
|
|
|
sudo docker-compose up --build |
|
|
|
|
|
|
|
|
|
|
|
dev: |
|
|
dev: |
|
|
sudo docker-compose up --build |
|
|
sudo docker-compose up --build |
|
|
|
|
|
|
|
|
check: |
|
|
|
|
|
sudo NODE_ENV="check" docker-compose run back --build |
|
|
|
|
|
sudo NODE_ENV="check" docker-compose run front --build |
|
|
|
|
|
sudo docker compose -f docker-compose.yml down |
|
|
|
|
|
|
|
|
|
|
|
debug: |
|
|
|
|
|
sudo NODE_ENV="debug" BUILDKIT_PROGRESS=plain docker-compose up --build |
|
|
|
|
|
|
|
|
|
|
|
stop: |
|
|
stop: |
|
|
sudo docker-compose down |
|
|
sudo docker-compose down |
|
|
|
|
|
|
|
@ -24,9 +13,11 @@ clean: stop |
|
|
sudo docker system prune -f |
|
|
sudo docker system prune -f |
|
|
|
|
|
|
|
|
fclean: stop |
|
|
fclean: stop |
|
|
|
|
|
sudo rm -rf postgres |
|
|
|
|
|
sudo rm -rf back/avatars |
|
|
sudo rm -rf */node_modules |
|
|
sudo rm -rf */node_modules |
|
|
sudo docker system prune -af --volumes |
|
|
sudo docker system prune -af --volumes |
|
|
|
|
|
|
|
|
re: fclean dev |
|
|
re: fclean dev |
|
|
|
|
|
|
|
|
.PHONY: all prod dev check debug stop clean fclean re |
|
|
.PHONY: all dev stop clean fclean re |
|
|