Skip to content

Commit a594af8

Browse files
authored
Merge pull request #586 from nanobox-io/bugfix/585
Support service configuration enhancements
2 parents 3fa38f5 + 9ecfb41 commit a594af8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

generators/hooks/code/configure.go

+8
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ type (
2020
Env map[string]string `json:"env"`
2121
LogWatches interface{} `json:"log_watches"`
2222
Start interface{} `json:"start"`
23+
Cwd interface{} `json:"cwd"`
24+
Stop interface{} `json:"stop"`
25+
StopTimeout interface{} `json:"stop_timeout"`
26+
StopForce interface{} `json:"stop_force"`
2327
CronJobs interface{} `json:"cron_jobs"`
2428
}
2529

@@ -60,6 +64,10 @@ func ConfigurePayload(appModel *models.App, componentModel *models.Component) st
6064
Env: appModel.Evars,
6165
LogWatches: boxfile.Node(componentModel.Name).Value("log_watch"),
6266
Start: boxfile.Node(componentModel.Name).Value("start"),
67+
Cwd: boxfile.Node(componentModel.Name).Value("cwd"),
68+
Stop: boxfile.Node(componentModel.Name).Value("stop"),
69+
StopTimeout: boxfile.Node(componentModel.Name).Value("stop_timeout"),
70+
StopForce: boxfile.Node(componentModel.Name).Value("stop_force"),
6371
CronJobs: boxfile.Node(componentModel.Name).Value("cron"),
6472
}
6573

0 commit comments

Comments
 (0)