Skip to content

chore: add alias helper to develop.sh #6031

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 6, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
restore formatting
  • Loading branch information
bpmct committed Feb 4, 2023
commit 299503d470defffda262ffddc221a689e8b0fc92
32 changes: 16 additions & 16 deletions scripts/develop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,22 +181,22 @@ fatal() {
fi

# Space padding used after the URLs to align "==".
space_padding=26
log
log "===================================================================="
log "== =="
log "== Coder is now running in development mode. =="
for iface in "${interfaces[@]}"; do
log "$(printf "== API: http://%s:3000%$((space_padding - ${#iface}))s==" "$iface" "")"
done
for iface in "${interfaces[@]}"; do
log "$(printf "== Web UI: http://%s:8080%$((space_padding - ${#iface}))s==" "$iface" "")"
done
log "== =="
log "== Use ./scripts/coder-dev.sh to talk to this instance! =="
log "$(printf "== alias coder=%s/scripts/coder-dev.sh%$((space_padding - ${#PWD} - 2))s==" "$PWD" "")"
log "===================================================================="
log
space_padding=26
log
log "===================================================================="
log "== =="
log "== Coder is now running in development mode. =="
for iface in "${interfaces[@]}"; do
log "$(printf "== API: http://%s:3000%$((space_padding - ${#iface}))s==" "$iface" "")"
done
for iface in "${interfaces[@]}"; do
log "$(printf "== Web UI: http://%s:8080%$((space_padding - ${#iface}))s==" "$iface" "")"
done
log "== =="
log "== Use ./scripts/coder-dev.sh to talk to this instance! =="
log "$(printf "== alias coder=%s/scripts/coder-dev.sh%$((space_padding - ${#PWD} - 2))s==" "$PWD" "")"
log "===================================================================="
log

# Wait for both frontend and backend to exit.
wait_cmds
Expand Down