diff --git a/scripts/build-flutter-app.sh b/scripts/build-flutter-app.sh index e65cf8e3..364b229a 100644 --- a/scripts/build-flutter-app.sh +++ b/scripts/build-flutter-app.sh @@ -5,16 +5,14 @@ set -e # Display each command as it's run. set -x -DEPLOY_BRANCH=deploy-slac - cd /usr/src/rubintv -git clone --single-branch --branch $DEPLOY_BRANCH https://github.com/lsst-sitcom/rubin_chart -git clone --single-branch --branch $DEPLOY_BRANCH https://github.com/lsst-ts/rubintv_visualization ./ddv +git clone --single-branch --branch $DDV_DEPLOY_BRANCH https://github.com/lsst-sitcom/rubin_chart +git clone --single-branch --branch $DDV_DEPLOY_BRANCH https://github.com/lsst-ts/rubintv_visualization ./ddv # Base HREF must be bookended by "/". -DDV_BASE_HREF=/rubintv/ddv/ -CLIENT_WS_ADDRESS=rubintv/ws/ddv +DDV_CLIENT_WS_ADDRESS=${DDV_CLIENT_WS_ADDRESS:-rubintv/ws/ddv} +DDV_BASE_HREF=${DDV_BASE_HREF:-/rubintv/ddv/} cd ddv -echo "ADDRESS=$CLIENT_WS_ADDRESS" > .env +echo "ADDRESS=$DDV_CLIENT_WS_ADDRESS" > .env flutter build web --base-href $DDV_BASE_HREF --profile --source-maps \ No newline at end of file