MyINPulse/Makefile
2025-02-05 21:01:24 +01:00

39 lines
890 B
Makefile

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