From c0701aca6b0b7d1e9ed5e910e2c81f6d6122f13a Mon Sep 17 00:00:00 2001 From: Sebastian Aranda Sanchez Date: Tue, 9 Jul 2024 12:22:21 -0400 Subject: [PATCH] Connect environment variables for flutter build script --- scripts/build-flutter-app.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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