File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 14
14
15
15
# Preflight checks: ensure we have our required dependencies, and make sure nothing is listening on port 3000 or 8080
16
16
dependencies curl git go make nc yarn
17
- nc -z localhost 3000 && echo ' == ERROR: something is listening on port 3000. Kill it and re-run this script.' && exit 1
18
- nc -z localhost 8080 && echo ' == ERROR: something is listening on port 8080. Kill it and re-run this script.' && exit 1
17
+ nc -z 127.0.0.1 3000 > /dev/null 2>&1 && echo ' == ERROR: something is listening on port 3000. Kill it and re-run this script.' && exit 1
18
+ nc -z 127.0.0.1 8080 > /dev/null 2>&1 && echo ' == ERROR: something is listening on port 8080. Kill it and re-run this script.' && exit 1
19
19
20
20
echo ' == Run "make build" before running this command to build binaries.'
21
21
echo ' == Without these binaries, workspaces will fail to start!'
@@ -29,8 +29,8 @@ echo '== Without these binaries, workspaces will fail to start!'
29
29
(
30
30
SCRIPT_PID=$$
31
31
cd " ${PROJECT_ROOT} "
32
- CODERV2_HOST=http://127.0.0.1:3000 INSPECT_XSTATE=true yarn --cwd=./site dev || kill -INT ${SCRIPT_PID} &
33
- go run -tags embed cmd/coder/main.go server --in-memory --tunnel || kill -INT ${SCRIPT_PID} &
32
+ CODERV2_HOST=http://127.0.0.1:3000 INSPECT_XSTATE=true yarn --cwd=./site dev || kill -INT - ${SCRIPT_PID} &
33
+ go run -tags embed cmd/coder/main.go server --address 127.0.0.1:3000 -- in-memory --tunnel || kill -INT - ${SCRIPT_PID} &
34
34
35
35
echo ' == Waiting for Coder to become ready'
36
36
timeout 60s bash -c ' until curl -s --fail http://localhost:3000 > /dev/null 2>&1; do sleep 0.5; done'
You can’t perform that action at this time.
0 commit comments