From: Bill Erickson Date: Wed, 26 Jun 2019 18:11:19 +0000 (-0400) Subject: Ang and AngJS builds; assumes nginx X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8228a00f57bfd9b57032f32437803d53fa1eafc4;p=working%2Frandom.git Ang and AngJS builds; assumes nginx Signed-off-by: Bill Erickson --- diff --git a/eg-quick-deploy.sh b/eg-quick-deploy.sh index bfd019e41..262d242d4 100755 --- a/eg-quick-deploy.sh +++ b/eg-quick-deploy.sh @@ -13,13 +13,24 @@ if [ $(whoami) != 'opensrf' ]; then exit; fi +sudo systemctl stop nginx sudo systemctl stop apache2 -sudo apache2ctl-websockets stop # no systemd service file +sudo systemctl stop websocketd-osrf /openils/bin/osrf_control --localhost --fast-shutdown-all BID=$(date +"%FT%T"); -cd $ILS; + +# AngularJS +cd $ILS/Open-ILS/web/js/ui/default/staff/ +npm run build-prod + +# Angular +cd $ILS/Open-ILS/src/eg2/ +ng build --prod + +cd $ILS + make && sudo make install STAFF_CLIENT_BUILD_ID=$BID \ STAFF_CLIENT_VERISON=$BID STAFF_CLIENT_STAMP_ID=$BID; @@ -43,6 +54,8 @@ echo "Giving services a few seconds to start..." sleep 10; cd /openils/bin && ./autogen.sh ../conf/opensrf_core.xml; +sudo systemctl start websocketd-osrf +sudo systemctl start nginx sudo systemctl start apache2 -sudo apache2ctl-websockets start; +