added APP_ENV dev or stage

This commit is contained in:
2020-07-14 16:18:21 +02:00
parent d57c6b3c06
commit ac94d2ca2f
4 changed files with 19 additions and 3 deletions
+11 -2
View File
@@ -10,5 +10,14 @@ rm -rf node_modules
echo "Npm install"
npm install
echo "Run npm dev"
npm run dev
# echo "Run npm dev"
# npm run dev
echo "APP_ENV $APP_ENV"
if [ "$APP_ENV" = "prod" ]; then
echo "Run npm prod"
npm run prod
else
echo "Run npm dev"
npm run dev
fi