Fix Local Runtime Default Command (#1173)
* Auth API Proto * Fix local runtime bug * Add Platform Proto * Restructuring
This commit is contained in:
parent
0e9b4c26a4
commit
19c454ec4b
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user