Skip to content

Commit 208ab3b

Browse files
committed
Add a flag for not rebuilding the webapp
1 parent fdb09b9 commit 208ab3b

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

scripts/deploy_app.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
#!/bin/bash
22
set -e # Quit on error.
33

4-
# Build the webapp.
5-
echo "#############################"
6-
echo "Building the webapp..."
7-
echo "#############################"
8-
npm install
9-
npm run build
4+
if [[ "$@" == *"--no-rebuild"* ]]; then
5+
echo "Webapp will be installed from the dist/ folder without rebuild."
6+
else
7+
# Build the webapp.
8+
echo "#############################"
9+
echo "Building the webapp..."
10+
echo "#############################"
11+
npm install
12+
npm run build
13+
fi
1014

1115
echo
1216
echo "Installing the web app..."

0 commit comments

Comments
 (0)