@@ -39,17 +39,17 @@ module "auto_dev_server" {
3939
4040## Supported Frameworks
4141
42- | Framework | Detection Files | Default Start Command |
43- | -----------| ----------------| ----------------------|
44- | ** Node.js** | ` package.json ` | ` npm start ` |
45- | ** Rails** | ` Gemfile ` , ` config.ru ` , ` app/controllers ` | ` rails server ` |
46- | ** Django** | ` manage.py ` , ` settings.py ` | ` python manage.py runserver 0.0.0.0:8000 ` |
47- | ** Flask** | ` app.py ` , ` application.py ` , ` wsgi.py ` | ` flask run --host=0.0.0.0 ` |
48- | ** FastAPI** | ` main.py ` , ` app.py ` | ` uvicorn main:app --host 0.0.0.0 --port 8000 ` |
49- | ** Spring Boot** | ` pom.xml ` , ` build.gradle ` , ` src/main/java ` | ` ./mvnw spring-boot:run ` |
50- | ** Go** | ` go.mod ` , ` main.go ` | ` go run . ` |
51- | ** Rust** | ` Cargo.toml ` , ` src/main.rs ` | ` cargo run ` |
52- | ** PHP** | ` index.php ` , ` composer.json ` | ` php -S 0.0.0.0:8000 ` |
42+ | Framework | Detection Files | Default Start Command |
43+ | --------------- | ------------------------------------------ | --------------------------------------------- |
44+ | ** Node.js** | ` package.json ` | ` npm start ` |
45+ | ** Rails** | ` Gemfile ` , ` config.ru ` , ` app/controllers ` | ` rails server ` |
46+ | ** Django** | ` manage.py ` , ` settings.py ` | ` python manage.py runserver 0.0.0.0:8000 ` |
47+ | ** Flask** | ` app.py ` , ` application.py ` , ` wsgi.py ` | ` flask run --host=0.0.0.0 ` |
48+ | ** FastAPI** | ` main.py ` , ` app.py ` | ` uvicorn main:app --host 0.0.0.0 --port 8000 ` |
49+ | ** Spring Boot** | ` pom.xml ` , ` build.gradle ` , ` src/main/java ` | ` ./mvnw spring-boot:run ` |
50+ | ** Go** | ` go.mod ` , ` main.go ` | ` go run . ` |
51+ | ** Rust** | ` Cargo.toml ` , ` src/main.rs ` | ` cargo run ` |
52+ | ** PHP** | ` index.php ` , ` composer.json ` | ` php -S 0.0.0.0:8000 ` |
5353
5454## Configuration Options
5555
@@ -72,11 +72,11 @@ Enable only specific frameworks:
7272
7373``` tf
7474module "auto_dev_server" {
75- count = data.coder_workspace.me.start_count
76- source = "registry.coder.com/toti85/auto-dev-server/coder"
77- version = "1.0.0"
78- agent_id = coder_agent.example.id
79- enabled_frameworks = ["nodejs", "rails", "django"]
75+ count = data.coder_workspace.me.start_count
76+ source = "registry.coder.com/toti85/auto-dev-server/coder"
77+ version = "1.0.0"
78+ agent_id = coder_agent.example.id
79+ enabled_frameworks = ["nodejs", "rails", "django"]
8080}
8181```
8282
@@ -86,10 +86,10 @@ Override default commands for specific frameworks:
8686
8787``` tf
8888module "auto_dev_server" {
89- count = data.coder_workspace.me.start_count
90- source = "registry.coder.com/toti85/auto-dev-server/coder"
91- version = "1.0.0"
92- agent_id = coder_agent.example.id
89+ count = data.coder_workspace.me.start_count
90+ source = "registry.coder.com/toti85/auto-dev-server/coder"
91+ version = "1.0.0"
92+ agent_id = coder_agent.example.id
9393 custom_commands = {
9494 nodejs = "npm run dev"
9595 rails = "bundle exec rails server -b 0.0.0.0"
@@ -102,16 +102,16 @@ module "auto_dev_server" {
102102
103103``` tf
104104module "auto_dev_server" {
105- count = data.coder_workspace.me.start_count
106- source = "registry.coder.com/toti85/auto-dev-server/coder"
107- version = "1.0.0"
108- agent_id = coder_agent.example.id
109- project_dir = "/workspace"
105+ count = data.coder_workspace.me.start_count
106+ source = "registry.coder.com/toti85/auto-dev-server/coder"
107+ version = "1.0.0"
108+ agent_id = coder_agent.example.id
109+ project_dir = "/workspace"
110110 enabled_frameworks = ["nodejs", "rails", "django", "spring"]
111- start_delay = 60
112- log_level = "DEBUG"
113- use_devcontainer = true
114- custom_commands = {
111+ start_delay = 60
112+ log_level = "DEBUG"
113+ use_devcontainer = true
114+ custom_commands = {
115115 nodejs = "npm run dev -- --host 0.0.0.0"
116116 spring = "./gradlew bootRun"
117117 }
@@ -120,23 +120,23 @@ module "auto_dev_server" {
120120
121121## Variables
122122
123- | Variable | Type | Default | Description |
124- | ----------| ------| ---------| -------------|
125- | ` agent_id ` | ` string ` | ** Required** | The ID of a Coder agent |
126- | ` project_dir ` | ` string ` | ` "$HOME" ` | Directory to scan for projects |
127- | ` enabled_frameworks ` | ` list(string) ` | ` ["nodejs", "rails", "django", "flask", "fastapi", "spring", "go", "rust", "php"] ` | Frameworks to detect |
128- | ` start_delay ` | ` number ` | ` 30 ` | Delay before starting servers (seconds) |
129- | ` log_level ` | ` string ` | ` "INFO" ` | Logging level (DEBUG, INFO, WARN, ERROR) |
130- | ` use_devcontainer ` | ` bool ` | ` true ` | Enable devcontainer.json integration |
131- | ` custom_commands ` | ` map(string) ` | ` {} ` | Custom start commands per framework |
123+ | Variable | Type | Default | Description |
124+ | -------------------- | -------------- | ---------------------------------------------------------------------------------- | ---------------------------------------- |
125+ | ` agent_id ` | ` string ` | ** Required** | The ID of a Coder agent |
126+ | ` project_dir ` | ` string ` | ` "$HOME" ` | Directory to scan for projects |
127+ | ` enabled_frameworks ` | ` list(string) ` | ` ["nodejs", "rails", "django", "flask", "fastapi", "spring", "go", "rust", "php"] ` | Frameworks to detect |
128+ | ` start_delay ` | ` number ` | ` 30 ` | Delay before starting servers (seconds) |
129+ | ` log_level ` | ` string ` | ` "INFO" ` | Logging level (DEBUG, INFO, WARN, ERROR) |
130+ | ` use_devcontainer ` | ` bool ` | ` true ` | Enable devcontainer.json integration |
131+ | ` custom_commands ` | ` map(string) ` | ` {} ` | Custom start commands per framework |
132132
133133## Outputs
134134
135- | Output | Description |
136- | --------| -------------|
137- | ` log_file ` | Path to the auto-dev-server log file |
138- | ` enabled_frameworks ` | List of enabled frameworks |
139- | ` project_directory ` | Directory being scanned |
135+ | Output | Description |
136+ | -------------------- | ------------------------------------ |
137+ | ` log_file ` | Path to the auto-dev-server log file |
138+ | ` enabled_frameworks ` | List of enabled frameworks |
139+ | ` project_directory ` | Directory being scanned |
140140
141141## Devcontainer Integration
142142
@@ -206,14 +206,14 @@ custom_commands = {
206206
207207``` tf
208208module "auto_dev_server" {
209- count = data.coder_workspace.me.start_count
210- source = "registry.coder.com/toti85/auto-dev-server/coder"
211- version = "1.0.0"
212- agent_id = coder_agent.example.id
213- project_dir = "/home/coder/workspace"
214- enabled_frameworks = ["nodejs", "django", "spring"]
215- start_delay = 45
216- custom_commands = {
209+ count = data.coder_workspace.me.start_count
210+ source = "registry.coder.com/toti85/auto-dev-server/coder"
211+ version = "1.0.0"
212+ agent_id = coder_agent.example.id
213+ project_dir = "/home/coder/workspace"
214+ enabled_frameworks = ["nodejs", "django", "spring"]
215+ start_delay = 45
216+ custom_commands = {
217217 nodejs = "npm run dev:frontend"
218218 django = "python manage.py runserver 0.0.0.0:8000"
219219 spring = "./mvnw spring-boot:run -Dspring-boot.run.profiles=dev"
@@ -225,14 +225,14 @@ module "auto_dev_server" {
225225
226226``` tf
227227module "auto_dev_server" {
228- count = data.coder_workspace.me.start_count
229- source = "registry.coder.com/toti85/auto-dev-server/coder"
230- version = "1.0.0"
231- agent_id = coder_agent.example.id
232- project_dir = "/workspace/services"
233- enabled_frameworks = ["nodejs", "go", "fastapi"]
234- log_level = "DEBUG"
235- custom_commands = {
228+ count = data.coder_workspace.me.start_count
229+ source = "registry.coder.com/toti85/auto-dev-server/coder"
230+ version = "1.0.0"
231+ agent_id = coder_agent.example.id
232+ project_dir = "/workspace/services"
233+ enabled_frameworks = ["nodejs", "go", "fastapi"]
234+ log_level = "DEBUG"
235+ custom_commands = {
236236 nodejs = "npm run dev:api"
237237 go = "go run cmd/server/main.go"
238238 fastapi = "uvicorn app.main:app --host 0.0.0.0 --port 8001 --reload"
0 commit comments