Browse Source

no node-env -> dev launch

master
nicolas-arnaud 2 years ago
parent
commit
89f98e9fbc
  1. 2
      Makefile
  2. 3
      back/entrypoint.sh
  3. 9
      front/entrypoint.sh

2
Makefile

@ -4,7 +4,7 @@ USER = gavaniwast
all: clean dev all: clean dev
dev: dev:
NODE_ENV="development" docker-compose up --build docker-compose up --build
check: check:
NODE_ENV="check" docker-compose run back --build NODE_ENV="check" docker-compose run back --build

3
back/entrypoint.sh

@ -26,7 +26,6 @@ if [[ $NODE_ENV == "debug" ]]; then
npm run start:debug; npm run start:debug;
elif [[ $NODE_ENV == "check" ]]; then elif [[ $NODE_ENV == "check" ]]; then
npm run format && npm run lint; echo "=== FINISH ==="; npm run format && npm run lint; echo "=== FINISH ===";
elif [[ $NODE_ENV == "development" ]]; then else
npm run dev; npm run dev;
else echo "NODE_ENV value isn't known.";
fi; fi;

9
front/entrypoint.sh

@ -6,11 +6,8 @@ VITE_BACK_PORT=$BACK_PORT
EOF EOF
npm install; npm install;
if [[ $NODE_ENV == "development" ]]; then if [[ $NODE_ENV == "check" ]]; then
npm run dev;
elif [[ $NODE_ENV == "debug" ]]; then
npm run dev;
elif [[ $NODE_ENV == "check" ]]; then
npm run format && npm run check; echo "=== FINISH ===" npm run format && npm run check; echo "=== FINISH ==="
else echo "Nothing to do for that NODE_ENV context."; else
npm run dev;
fi; fi;

Loading…
Cancel
Save