fix: Improve develop script to start tunnel by default (#1409)

This allows for running the development script to actually
build workspaces!
This commit is contained in:
Kyle Carberry
2022-05-12 12:37:51 -05:00
committed by GitHub
parent 20916281d8
commit 7b5300d0cc
5 changed files with 28 additions and 23 deletions
+4 -1
View File
@@ -5,6 +5,9 @@ set -euo pipefail
PROJECT_ROOT="$(git rev-parse --show-toplevel)"
cd "${PROJECT_ROOT}"
echo '== Run "make build" before running this command to build binaries.'
echo '== Without these binaries, workspaces will fail to start!'
# Run yarn install, to make sure node_modules are ready to go
"$PROJECT_ROOT/scripts/yarn_install.sh"
@@ -18,6 +21,6 @@ export CODER_DEV_ADMIN_PASSWORD=password
(
trap 'kill 0' SIGINT
CODERV2_HOST=http://127.0.0.1:3000 INSPECT_XSTATE=true yarn --cwd=./site dev &
go run cmd/coder/main.go server --dev --skip-tunnel &
go run -tags embed cmd/coder/main.go server --dev --tunnel=true &
wait
)