Skip to content

Commit

Permalink
Fix: daemon bug (elastic#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtojek authored Aug 31, 2020
1 parent d23d9c5 commit 7d967f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/stack/boot.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,15 @@ func dockerComposeUp(options BootOptions) error {
"up",
}

if options.DaemonMode {
args = append(args, "-d")
}

services := withIsReadyServices(withDependentServices(options.Services))
if len(services) > 0 {
args = append(args, services...)
}

if options.DaemonMode {
args = append(args, "-d")
}

if len(options.Services) > 0 {
for _, aService := range options.Services {
args = append(args, aService, fmt.Sprintf("%s_is_ready", aService))
Expand Down

0 comments on commit 7d967f8

Please sign in to comment.