TT#97850 CSC: Fix dev env script

Change-Id: I24ff55b643b8904b10d84de92711256ef4303881
mr9.1.1
Carlo Venusino 5 years ago
parent 96c6ac416c
commit eccc51c3f6

5
env/run_csc_ui vendored

@ -29,8 +29,8 @@ echo "Found quasar config '${app_config}', checking content..."
if ! grep -q "${ngcp_address}" "${app_config}" >/dev/null 2>&1; then
echo "NGCP address '${ngcp_address}' is missing in '${app_config}', regenerating from default config..."
cp -a "${default_app_config}" "${app_config}"
sed -i -e "s|baseHttpUrl:.*|baseHttpUrl: 'https://${ngcp_address}:1443',|" "${app_config}"
sed -i -e "s|baseWsUrl:.*|baseWsUrl: 'wss://${ngcp_address}:1443'|" "${app_config}"
sed -i -e "s|baseHttpUrl:.*|baseHttpUrl: 'https://${ngcp_address}',|" "${app_config}"
sed -i -e "s|baseWsUrl:.*|baseWsUrl: 'wss://${ngcp_address}'|" "${app_config}"
fi
echo "App config '${app_config}' is OK."
@ -49,4 +49,3 @@ if ! yarnpkg run dev ; then
echo "ERROR: cannot run quasar dev environment. Aborting."
exit 1
fi

Loading…
Cancel
Save