From 4f6614c080792a66bc7e4646f2cce06fc435fc78 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Thu, 18 Jul 2024 15:50:01 -0400 Subject: [PATCH] Copy DataStream WebApp 'dist' to 'wwwroot' in deploy script --- tools/deploy_data_stream_app.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/deploy_data_stream_app.sh b/tools/deploy_data_stream_app.sh index 9a2d60be4..26332804f 100755 --- a/tools/deploy_data_stream_app.sh +++ b/tools/deploy_data_stream_app.sh @@ -137,6 +137,15 @@ if [ $status -ne 0 ]; then exit 1 fi +# Copy DataStream WebApp bundle to release_bin +cp -r "build/Bts.DataStreamWebApp.Client/production/dist" "$release_bin/wwwroot" +status=$? +if [ $status -ne 0 ]; then + echo "Copy DataStream WebApp bundle exited with code $status. Full command below:" + echo "cp build/Bts.DataStreamWebApp.Client/production/dist $release_bin/wwwroot" + exit 1 +fi + cat <> "$release_dir/Dockerfile" COPY "bin" "$app_name/bin" WORKDIR /home/bts/$app_name/bin