Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 4 additions & 0 deletions .icons/auto-dev-server.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 24 additions & 24 deletions registry/mavrickrishi/modules/auto-start-dev-server/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
display_name: Auto-Start Development Servers
display_name: Auto-Start Dev Servers
description: Automatically detect and start development servers for various project types
icon: ../../../../.icons/server.svg
icon: ../../../../.icons/auto-dev-server.svg
verified: false
tags: [development, automation, servers]
---
Expand All @@ -13,7 +13,7 @@ Automatically detect and start development servers for various project types whe
```tf
module "auto_start_dev_servers" {
source = "registry.coder.com/mavrickrishi/auto-start-dev-server/coder"
version = "1.0.0"
version = "1.0.1"
agent_id = coder_agent.main.id
}
```
Expand Down Expand Up @@ -48,20 +48,20 @@ module "auto_start_dev_servers" {

### Basic Usage

```hcl
```tf
module "auto_start" {
source = "./modules/auto-start-dev-server"
version = "1.0.0"
version = "1.0.1"
agent_id = coder_agent.main.id
}
```

### Advanced Usage

```hcl
```tf
module "auto_start_dev_servers" {
source = "./modules/auto-start-dev-server"
version = "1.0.0"
version = "1.0.1"
agent_id = coder_agent.main.id

# Optional: Configure which project types to detect
Expand All @@ -70,10 +70,10 @@ module "auto_start_dev_servers" {
enable_django = true
enable_flask = true
enable_spring_boot = true
enable_go = true
enable_php = true
enable_rust = true
enable_dotnet = true
enable_go = true
enable_php = true
enable_rust = true
enable_dotnet = true

# Optional: Enable devcontainer.json integration
enable_devcontainer = true
Expand All @@ -97,10 +97,10 @@ module "auto_start_dev_servers" {

### Disable Preview App

```hcl
```tf
module "auto_start" {
source = "./modules/auto-start-dev-server"
version = "1.0.0"
version = "1.0.1"
agent_id = coder_agent.main.id

# Disable automatic preview app creation
Expand All @@ -110,10 +110,10 @@ module "auto_start" {

### Selective Project Types

```hcl
```tf
module "auto_start" {
source = "./modules/auto-start-dev-server"
version = "1.0.0"
version = "1.0.1"
agent_id = coder_agent.main.id

# Only enable web development projects
Expand All @@ -124,25 +124,25 @@ module "auto_start" {

# Disable other project types
enable_spring_boot = false
enable_go = false
enable_php = false
enable_rust = false
enable_dotnet = false
enable_go = false
enable_php = false
enable_rust = false
enable_dotnet = false
}
```

### Deep Workspace Scanning

```hcl
```tf
module "auto_start" {
source = "./modules/auto-start-dev-server"
version = "1.0.0"
version = "1.0.1"
agent_id = coder_agent.main.id

workspace_directory = "/workspaces"
scan_depth = 3
startup_delay = 5
log_path = "/var/log/dev-servers.log"
scan_depth = 3
startup_delay = 5
log_path = "/var/log/dev-servers.log"
}
```

Expand Down
4 changes: 2 additions & 2 deletions registry/mavrickrishi/modules/auto-start-dev-server/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ locals {
resource "coder_script" "auto_start_dev_server" {
agent_id = var.agent_id
display_name = var.display_name
icon = "/icon/server.svg"
icon = "/icon/auto-dev-server.svg"
script = templatefile("${path.module}/run.sh", {
WORKSPACE_DIR = var.workspace_directory
ENABLE_NPM = coalesce(var.enable_npm, var.project_detection)
Expand All @@ -158,7 +158,7 @@ resource "coder_app" "preview" {
slug = "dev-preview"
display_name = "Live Preview"
url = "http://localhost:${local.detected_port}"
icon = "/icon/globe.svg"
icon = "/icon/auto-dev-server.svg"
subdomain = true
share = "owner"
}
Expand Down