diff --git a/runtime/local_runtime.go b/runtime/local_runtime.go index eed3ff3f..b72a80cc 100644 --- a/runtime/local_runtime.go +++ b/runtime/local_runtime.go @@ -164,7 +164,7 @@ func (r *runtime) Create(s *Service, opts ...CreateOption) error { } if len(options.Command) == 0 { - return errors.New("missing exec command") + options.Command = []string{"go", "run", "."} } // create new service diff --git a/runtime/service.go b/runtime/service.go index 45f70470..37fe38f2 100644 --- a/runtime/service.go +++ b/runtime/service.go @@ -167,6 +167,7 @@ func (s *service) Wait() { // save the error if err != nil { + log.Debugf("Error running service (%v): %v", s.Name, err) s.Metadata["status"] = "error" s.Metadata["error"] = err.Error() s.err = err