summaryrefslogtreecommitdiff
path: root/scripts/start.sh
diff options
context:
space:
mode:
authorOlcan <[email protected]>2025-05-01 09:16:33 -0700
committerGitHub <[email protected]>2025-05-01 09:16:33 -0700
commita18eea8c23dfb6759472d6b0bb80e13c2d6ef736 (patch)
tree371f0021db3c3fc92f2965b9c01f275611cedd13 /scripts/start.sh
parentb27aae26c886024af99b9a52455487f928372f98 (diff)
remove start_sandbox.sh script (#238)
Diffstat (limited to 'scripts/start.sh')
-rwxr-xr-xscripts/start.sh22
1 files changed, 10 insertions, 12 deletions
diff --git a/scripts/start.sh b/scripts/start.sh
index c979205e..06dd3d8f 100755
--- a/scripts/start.sh
+++ b/scripts/start.sh
@@ -18,16 +18,14 @@ set -euo pipefail
# check build status, write warnings to file for app to display if needed
node ./scripts/check-build-status.js
-# if sandboxing is enabled, start in sandbox container
-if scripts/sandbox_command.sh -q; then
- scripts/start_sandbox.sh "$@"
-else
- echo "WARNING: OUTSIDE SANDBOX. See README.md to enable sandboxing."
- # DEV=true to enable React Dev Tools (https://github.com/vadimdemedes/ink?tab=readme-ov-file#using-react-devtools)
- # CLI_VERSION to display in the app ui footer
- if [ -n "${DEBUG:-}" ]; then
- CLI_VERSION='development' DEV=true node --inspect-brk ./packages/cli "$@"
- else
- CLI_VERSION='development' DEV=true node ./packages/cli "$@"
- fi
+# if debugging is enabled and sandboxing is disabled, use --inspect-brk flag
+# note with sandboxing this flag is passed to the binary inside the sandbox
+node_args=()
+if [ -n "${DEBUG:-}" ] && ! scripts/sandbox_command.sh -q; then
+ node_args=(--inspect-brk)
fi
+node_args+=("./packages/cli" "$@")
+
+# DEV=true to enable React Dev Tools (https://github.com/vadimdemedes/ink?tab=readme-ov-file#using-react-devtools)
+# CLI_VERSION to display in the app ui footer
+CLI_VERSION='development' DEV=true node "${node_args[@]}"