31 lines
379 B
Bash
31 lines
379 B
Bash
#!/bin/sh
|
|
|
|
cat /etc/passwd|grep 1000
|
|
|
|
cd /app
|
|
|
|
echo "Cleaning node_modules"
|
|
rm -rf node_modules
|
|
|
|
echo "Cleaning npm cache"
|
|
npm cache clean --f
|
|
|
|
echo "Npm install"
|
|
npm install
|
|
|
|
# echo "Npm init"
|
|
# npm ci
|
|
|
|
|
|
# echo "Run npm dev"
|
|
# npm run dev
|
|
echo "APP_ENV $APP_ENV"
|
|
|
|
if [ "$APP_ENV" = "prod" ]; then
|
|
echo "Run npm prod"
|
|
npm run build
|
|
else
|
|
echo "Run npm dev"
|
|
npm run dev
|
|
fi
|