From 89f98e9fbc34432ce1dfa20d6089ca6b22e49a4c Mon Sep 17 00:00:00 2001 From: nicolas-arnaud Date: Tue, 21 Mar 2023 14:18:21 +0100 Subject: [PATCH] no node-env -> dev launch --- Makefile | 2 +- back/entrypoint.sh | 3 +-- front/entrypoint.sh | 9 +++------ 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index e4d9e0b..5de3299 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ USER = gavaniwast all: clean dev dev: - NODE_ENV="development" docker-compose up --build + docker-compose up --build check: NODE_ENV="check" docker-compose run back --build diff --git a/back/entrypoint.sh b/back/entrypoint.sh index 624b05e..439a19e 100644 --- a/back/entrypoint.sh +++ b/back/entrypoint.sh @@ -26,7 +26,6 @@ if [[ $NODE_ENV == "debug" ]]; then npm run start:debug; elif [[ $NODE_ENV == "check" ]]; then npm run format && npm run lint; echo "=== FINISH ==="; -elif [[ $NODE_ENV == "development" ]]; then +else npm run dev; -else echo "NODE_ENV value isn't known."; fi; diff --git a/front/entrypoint.sh b/front/entrypoint.sh index d946975..3694170 100644 --- a/front/entrypoint.sh +++ b/front/entrypoint.sh @@ -6,11 +6,8 @@ VITE_BACK_PORT=$BACK_PORT EOF npm install; -if [[ $NODE_ENV == "development" ]]; then - npm run dev; -elif [[ $NODE_ENV == "debug" ]]; then - npm run dev; -elif [[ $NODE_ENV == "check" ]]; then +if [[ $NODE_ENV == "check" ]]; then npm run format && npm run check; echo "=== FINISH ===" -else echo "Nothing to do for that NODE_ENV context."; +else + npm run dev; fi;