mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
+4
-1
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user