1234567891011121314151617181920212223242526272829 |
- #!/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
|