File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ CODER_DEV_ADMIN_PASSWORD="${CODER_DEV_ADMIN_PASSWORD:-password}"
13
13
set -u
14
14
15
15
# Preflight checks: ensure we have our required dependencies, and make sure nothing is listening on port 3000 or 8080
16
- dependencies curl git go make nc yarn
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
16
+ dependencies curl git go make yarn
17
+ curl --fail http:// 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
+ curl --fail http:// 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!'
You can’t perform that action at this time.
0 commit comments