mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: fix tailnet netcheck issues (#8802)
This commit is contained in:
@@ -11,7 +11,10 @@ source "${SCRIPT_DIR}/lib.sh"
|
||||
GOOS="$(go env GOOS)"
|
||||
GOARCH="$(go env GOARCH)"
|
||||
BINARY_TYPE=coder-slim
|
||||
if [[ $1 == server ]]; then
|
||||
if [[ ${1:-} == server ]]; then
|
||||
BINARY_TYPE=coder
|
||||
fi
|
||||
if [[ ${1:-} == wsproxy ]] && [[ ${2:-} == server ]]; then
|
||||
BINARY_TYPE=coder
|
||||
fi
|
||||
RELATIVE_BINARY_PATH="build/${BINARY_TYPE}_${GOOS}_${GOARCH}"
|
||||
|
||||
+2
-2
@@ -131,7 +131,7 @@ fatal() {
|
||||
trap 'fatal "Script encountered an error"' ERR
|
||||
|
||||
cdroot
|
||||
start_cmd API "" "${CODER_DEV_SHIM}" server --http-address 0.0.0.0:3000 --swagger-enable --access-url "http://127.0.0.1:3000" --dangerous-allow-cors-requests=true --experiments "*" "$@"
|
||||
start_cmd API "" "${CODER_DEV_SHIM}" server --http-address 0.0.0.0:3000 --swagger-enable --access-url "http://127.0.0.1:3000" --dangerous-allow-cors-requests=true --experiments "*,moons" "$@"
|
||||
|
||||
echo '== Waiting for Coder to become ready'
|
||||
# Start the timeout in the background so interrupting this script
|
||||
@@ -181,7 +181,7 @@ fatal() {
|
||||
log "Using external workspace proxy"
|
||||
(
|
||||
# Attempt to delete the proxy first, in case it already exists.
|
||||
"${CODER_DEV_SHIM}" wsproxy delete local-proxy || true
|
||||
"${CODER_DEV_SHIM}" wsproxy delete local-proxy --yes || true
|
||||
# Create the proxy
|
||||
proxy_session_token=$("${CODER_DEV_SHIM}" wsproxy create --name=local-proxy --display-name="Local Proxy" --icon="/emojis/1f4bb.png" --only-token)
|
||||
# Start the proxy
|
||||
|
||||
Reference in New Issue
Block a user