diff options
Diffstat (limited to 'moonv4/moon_gui/run.sh')
-rw-r--r-- | moonv4/moon_gui/run.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/moonv4/moon_gui/run.sh b/moonv4/moon_gui/run.sh new file mode 100644 index 00000000..94bc8360 --- /dev/null +++ b/moonv4/moon_gui/run.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +service apache2 start + +sed "s/{{MANAGER_HOST}}/$MANAGER_HOST/g" -i /root/static/app/moon.constants.js +sed "s/{{MANAGER_PORT}}/$MANAGER_PORT/g" -i /root/static/app/moon.constants.js +sed "s/{{KEYSTONE_HOST}}/$KEYSTONE_HOST/g" -i /root/static/app/moon.constants.js +sed "s/{{KEYSTONE_PORT}}/$KEYSTONE_PORT/g" -i /root/static/app/moon.constants.js + +echo "--------------------------" +cat /root/static/app/moon.constants.js +echo "--------------------------" + +gulp delivery +cp -rv /root/delivery/* /var/www/html + +tail -f /var/log/apache2/error.log |