| 1234567891011121314151617 | 
							- #!/bin/sh
 
- set -e
 
- if [ ! -d node_modules ]; then
 
-     npm install
 
- fi
 
- if [ "${APP_ENV}" = "development" ]; then
 
-     ln -sf /opt/app/nginx.dev.conf /etc/nginx/http.d/default.conf
 
-     nginx
 
-     npm run dev
 
- else
 
-     ln -sf /opt/app/nginx.prod.conf /etc/nginx/http.d/default.conf
 
-     nginx -g "daemon off;"
 
- fi
 
 
  |