RTL:update to 0.6.1,use npm install --only=production

This commit is contained in:
openoms 2020-01-13 20:31:36 +00:00
parent c279c71902
commit 7bcc9e3f83
No known key found for this signature in database
GPG key ID: A8133C3CF50B44E3

View file

@ -42,10 +42,9 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
rm -r /home/admin/RTL 2>/dev/null
git clone https://github.com/ShahanaFarooqui/RTL.git /home/admin/RTL
cd /home/admin/RTL
# git reset --hard v0.5.4
git reset --hard v0.6.1
# from https://github.com/Ride-The-Lightning/RTL/commits/master
git checkout 917feebfa4fb583360c140e817c266649307ef72
# check if node_modles exists now
# git checkout 917feebfa4fb583360c140e817c266649307ef72
if [ -d "/home/admin/RTL" ]; then
echo "OK - RTL code copy looks good"
else
@ -59,9 +58,9 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
# install
echo "*** Run: npm install ***"
export NG_CLI_ANALYTICS=false
npm install
npm install --only=production
cd ..
# check if node_modles exists now
# check if node_modules exist now
if [ -d "/home/admin/RTL/node_modules" ]; then
echo "OK - RTL install looks good"
else