Fix Local Runtime Default Command (#1173)

* Auth API Proto

* Fix local runtime bug

* Add Platform Proto

* Restructuring
This commit is contained in:
ben-toogood 2020-02-07 11:39:26 +00:00 committed by GitHub
parent 0e9b4c26a4
commit 19c454ec4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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