Permalink
Switch branches/tags
Nothing to show
Find file Copy path
75dfdf4 Aug 18, 2016
1 contributor

Users who have contributed to this file

12 lines (8 sloc) 504 Bytes
#!/bin/sh -e
echo "Configuring UI to use APP Server: $myhero_app_server"
sed -i -e 's#MYHERO_TROPO_SERVER#'"$myhero_tropo_server"'#g' /usr/share/nginx/html/scripts/app.js
sed -i -e 's#MYHERO_SPARK_SERVER#'"$myhero_spark_server"'#g' /usr/share/nginx/html/scripts/app.js
sed -i -e 's#MYHERO_APP_SERVER#'"$myhero_app_server"'#g' /usr/share/nginx/html/scripts/app.js
sed -i -e 's/MYHERO_APP_KEY/'"$myhero_app_key"'/g' /usr/share/nginx/html/scripts/app.js
echo "Starting Web Server"
nginx -g 'daemon off;'