Ang and AngJS builds; assumes nginx user/berick/eg-quick-deploy-script
authorBill Erickson <berickxx@gmail.com>
Wed, 26 Jun 2019 18:11:19 +0000 (14:11 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 26 Jun 2019 18:11:19 +0000 (14:11 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
eg-quick-deploy.sh

index bfd019e..262d242 100755 (executable)
@@ -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;
+