fix: switched from a bassh script to a Makefile

This commit is contained in:
Pierre Tellier
2025-02-05 21:01:24 +01:00
parent 1aa4b86d65
commit f63a56e6b1
16 changed files with 438 additions and 17 deletions

39
Makefile Normal file
View File

@ -0,0 +1,39 @@
help:
echo "clean dev-front prod"
clean:
docker compose down
rm .env
rm front/MyINPulse-front/.env
rm docker-compose.yaml
# Install npm packages
front/MyINPulse-front/.installed:
cd ./front/MyINPulse-front/ && npm i && touch .installed
vite: ./front/MyINPulse-front/.installed
dev-front: clean vite
cp config/frontdev.front.env front/MyINPulse-front/.env
cp config/frontdev.main.env .env
cp config/frontdev.docker-compose.yaml docker-compose.yaml
#docker compose up -d
cd ./front/MyINPulse-front/ && npm run dev
prod: clean
cp config/prod.front.env front/MyINPulse-front/.env
cp config/prod.main.env .env
cp config/frontdev.docker-compose.yaml docker-compose.yaml
#docker compose up -d
back:
cp config/backdev.front.env front/MyINPulse-front/.env
cp config/backdev.main.env .env
cp config/backdev.docker-compose.yaml docker-compose.yaml
docker compose up -d