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;