Skip to content
Snippets Groups Projects

Q1 2019 update

Merged Steffen Köhler requested to merge Q1-2019-Update into master
Viewing commit c98e0093
Show latest version
6 files
+ 3548
2309
Preferences
Compare changes
Files
6
@@ -25,17 +25,17 @@ else
chown ${APP_USER}:${APP_USER} ${APP_USER_HOME} -R
fi
common_args="--host=0.0.0.0 stripes.config.js --publicPath=${BASE_PATH}"
common_args="stripes.config.js --publicPath=${BASE_PATH}"
case $1 in
serve:production)
shift;
envsubst < /etc/nginx/conf.d/nginx.conf.template >| /etc/nginx/conf.d/default.conf
su ${APP_USER} -c "stripes build $common_args ./dist"
su ${APP_USER} -c "stripescore build $common_args ./dist"
nginx -g "daemon off;" "$@"
;;
serve:development)
su ${APP_USER} -c "stripes serve --dev --hasAllPerms $common_args"
su ${APP_USER} -c "stripescore dev $common_args"
;;
*)
su ${APP_USER} -c "$*"