Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -343,14 +343,14 @@ private static Map<String, Object> toYaml(ApplicationManifest applicationManifes
putIfPresent(yaml, "domains", applicationManifest.getDomains());
putIfPresent(yaml, "env", applicationManifest.getEnvironmentVariables());
putIfPresent(yaml, "health-check-http-endpoint", applicationManifest.getHealthCheckHttpEndpoint());
putIfPresent(yaml, "health-check-type", applicationManifest.getHealthCheckType().getValue());
putIfPresent(yaml, "health-check-type", applicationManifest.getHealthCheckType() != null ? applicationManifest.getHealthCheckType().getValue() : null);
putIfPresent(yaml, "hosts", applicationManifest.getHosts());
putIfPresent(yaml, "instances", applicationManifest.getInstances());
putIfPresent(yaml, "memory", applicationManifest.getMemory());
putIfPresent(yaml, "name", applicationManifest.getName());
putIfPresent(yaml, "no-hostname", applicationManifest.getNoHostname());
putIfPresent(yaml, "no-route", applicationManifest.getNoRoute());
putIfPresent(yaml, "path", applicationManifest.getPath());
putIfPresent(yaml, "path", applicationManifest.getPath() != null ? applicationManifest.getPath().toString() : null);
putIfPresent(yaml, "random-route", applicationManifest.getRandomRoute());
putIfPresent(yaml, "route-path", applicationManifest.getRoutePath());
putIfPresent(yaml, "routes", applicationManifest.getRoutes(), ApplicationManifestUtils::toRoutesYaml);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -502,10 +502,10 @@ public void write() throws IOException {
.command("alpha-command")
.disk(-1)
.healthCheckHttpEndpoint("alpha-health-check-http-endpoint")
.healthCheckType(NONE)
.instances(-1)
.memory(-1)
.noRoute(true)
.path(Paths.get("/alpha-path"))
.randomRoute(true)
.route(Route.builder()
.route("alpha-route-1")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ applications:
ALPHA_KEY_1: alpha-value-1
ALPHA_KEY_2: alpha-value-2
health-check-http-endpoint: alpha-health-check-http-endpoint
health-check-type: none
instances: -1
memory: -1
name: alpha-application-1
no-route: true
path: /alpha-path
random-route: true
routes:
- route: alpha-route-1
Expand Down