Skip to content

Commit

Permalink
Connect environment variables for flutter build script
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-aranda authored and ugyballoons committed Jul 17, 2024
1 parent 21d1335 commit c0701ac
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions scripts/build-flutter-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c0701ac

Please sign in to comment.