Skip to content

Commit f4a86a2

Browse files
feat(dev): Add option to skip frontend build in dev_deploy.sh (#183)
1 parent 7304e6b commit f4a86a2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

dev_deploy.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ show_help() {
1010
echo
1111
echo "Optional:"
1212
echo " -u, --user <remote_user> Remote username (default: root)"
13+
echo " --skip-ui-build Skip frontend/UI build"
1314
echo " --help Display this help message"
1415
echo
1516
echo "Example:"
@@ -21,6 +22,7 @@ show_help() {
2122
# Default values
2223
REMOTE_USER="root"
2324
REMOTE_PATH="/userdata/jetkvm/bin"
25+
SKIP_UI_BUILD=false
2426

2527
# Parse command line arguments
2628
while [[ $# -gt 0 ]]; do
@@ -33,6 +35,10 @@ while [[ $# -gt 0 ]]; do
3335
REMOTE_USER="$2"
3436
shift 2
3537
;;
38+
--skip-ui-build)
39+
SKIP_UI_BUILD=true
40+
shift
41+
;;
3642
--help)
3743
show_help
3844
exit 0
@@ -52,7 +58,9 @@ if [ -z "$REMOTE_HOST" ]; then
5258
fi
5359

5460
# Build the development version on the host
55-
make frontend
61+
if [ "$SKIP_UI_BUILD" = false ]; then
62+
make frontend
63+
fi
5664
make build_dev
5765

5866
# Change directory to the binary output directory

0 commit comments

Comments
 (0)