Skip to content

Commit fd89467

Browse files
committed
add automations and auto-forward port
1 parent ea9fdc3 commit fd89467

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,13 @@
2121
]
2222
}
2323
},
24-
"remoteUser": "vscode"
24+
"remoteUser": "vscode",
25+
"forwardPorts": [8080],
26+
"portsAttributes": {
27+
"8080": {
28+
"label": "Port 8080",
29+
"onAutoForward": "openPreview",
30+
"elevateIfNeeded": true
31+
}
32+
}
2533
}

.gitpod/automations.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
tasks:
2+
run:
3+
command: |
4+
./mvnw spring-boot:run
5+
dependsOn:
6+
- init
7+
name: "Run PetClinic App"
8+
triggeredBy:
9+
- postDevcontainerStart
10+
- manual
11+
init:
12+
command: |
13+
./mvnw clean install -U -DskipTests
14+
name: "Build"
15+
triggeredBy:
16+
- manual
17+

0 commit comments

Comments
 (0)