Skip to content

Commit

Permalink
Merge pull request #205 from lsst-ts/tickets/DM-44839
Browse files Browse the repository at this point in the history
Connect environment variables for the ddv flutter build script
  • Loading branch information
sebastian-aranda authored Jul 10, 2024
2 parents 911c773 + 82dff68 commit 56c41a3
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 56c41a3

Please sign in to comment.