Skip to content

feat: added auto-dev-server #217

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

kunstewi
Copy link

@kunstewi kunstewi commented Jul 11, 2025

Closes #204
/claim #204

Auto Development Server

Automatically detects and starts development servers for various project types when the workspace starts. Supports Node.js, Python, Ruby, Go, Rust, PHP projects, and integrates with devcontainer.json configuration.

module "auto_dev_server" {
  count    = data.coder_workspace.me.start_count
  source   = "registry.coder.com/kunstewi/auto-dev-server/coder"
  version  = "1.0.0"
  agent_id = coder_agent.example.id
}

Supported Project Types

  • Node.js: Detects package.json and runs npm start, npm run dev, or yarn start
  • Python: Detects Django (manage.py), Flask, or FastAPI projects
  • Ruby: Detects Rails applications and Rack applications
  • Go: Detects go.mod or main.go files
  • Rust: Detects Cargo.toml files
  • PHP: Detects composer.json or index.php files
  • Devcontainer: Uses postStartCommand from .devcontainer/devcontainer.json

Examples

Basic Usage

module "auto_dev_server" {
  count    = data.coder_workspace.me.start_count
  source   = "registry.coder.com/kunstewi/auto-dev-server/coder"
  version  = "1.0.0"
  agent_id = coder_agent.example.id
}

Custom Configuration

module "auto_dev_server" {
  count            = data.coder_workspace.me.start_count
  source           = "registry.coder.com/kunstewi/auto-dev-server/coder"
  version          = "1.0.0"
  agent_id         = coder_agent.example.id
  project_dir      = "/workspace/projects"
  port_range_start = 4000
  port_range_end   = 8000
  log_level        = "DEBUG"
}

@kunstewi kunstewi changed the title added auto-dev-server feat: added auto-dev-server Jul 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto-start development servers based on project detection
1 participant