Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: improve message when running develop.sh multiple times#19333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
johnstcn merged 2 commits intomainfromcj/develop-sh-running-check
Aug 13, 2025
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletionsscripts/develop.sh
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -72,9 +72,25 @@ if [ -n "${CODER_AGENT_URL:-}" ]; then
fi

# Preflight checks: ensure we have our required dependencies, and make sure nothing is listening on port 3000 or 8080
dependencies curl git go make pnpm
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
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
dependencies curl git go jq make pnpm

if curl --silent --fail http://127.0.0.1:3000; then
# Check if this is the Coder development server.
if curl --silent --fail http://127.0.0.1:3000/api/v2/buildinfo 2>&1 | jq -r '.version' >/dev/null 2>&1; then
echo '== INFO: Coder development server is already running on port 3000!' && exit 0
else
echo '== ERROR: something is listening on port 3000. Kill it and re-run this script.' && exit 1
fi
fi

if curl --fail http://127.0.0.1:8080 >/dev/null 2>&1; then
# Check if this is the Coder development frontend.
if curl --silent --fail http://127.0.0.1:8080/api/v2/buildinfo 2>&1 | jq -r '.version' >/dev/null 2>&1; then
echo '== INFO: Coder development frontend is already running on port 8080!' && exit 0
else
echo '== ERROR: something is listening on port 8080. Kill it and re-run this script.' && exit 1
fi
fi

# Compile the CLI binary. This should also compile the frontend and refresh
# node_modules if necessary.
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp