mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
3a3537a642
Replace the ~370-line bash develop.sh with a Go program using serpent for CLI flags, errgroup for process lifecycle, and codersdk for setup. develop.sh becomes a thin make + exec wrapper. - Process groups for clean shutdown of child trees - Docker template auto-creation via SDK ExampleID - Idempotent setup (users, orgs, templates) - Configurable --port, --web-port, --proxy-port - Preflight runs lib.sh dependency checks - TCP dial for port-busy checks - Make target (build/.bin/develop) for build caching
13 lines
353 B
Bash
Executable File
13 lines
353 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Usage: ./develop.sh [flags...] [-- extra server args...]
|
|
#
|
|
# This is a thin wrapper that delegates to the Go development orchestrator
|
|
# at scripts/develop. See that package for the full implementation.
|
|
|
|
set -euo pipefail
|
|
cd "$(dirname "${BASH_SOURCE[0]}")/.."
|
|
|
|
make -j MAKE_TIMED=1 build/.bin/develop
|
|
exec build/.bin/develop "$@"
|