summaryrefslogtreecommitdiff
path: root/cmd/rr/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/rr/main.go')
-rw-r--r--cmd/rr/main.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/cmd/rr/main.go b/cmd/rr/main.go
index 2a16b195..2abb6321 100644
--- a/cmd/rr/main.go
+++ b/cmd/rr/main.go
@@ -23,8 +23,6 @@
package main
import (
- "github.com/sirupsen/logrus"
-
rr "github.com/spiral/roadrunner/cmd/rr/cmd"
// services (plugins)
@@ -33,15 +31,19 @@ import (
"github.com/spiral/roadrunner/service/static"
// additional command handlers
+ "github.com/sirupsen/logrus"
_ "github.com/spiral/roadrunner/cmd/rr/http"
+ "github.com/spiral/roadrunner/service/env"
)
func main() {
+ rr.Logger.Formatter = &logrus.TextFormatter{ForceColors: true}
+
+ rr.Container.Register(env.ID, &env.Service{})
rr.Container.Register(rpc.ID, &rpc.Service{})
rr.Container.Register(http.ID, &http.Service{})
rr.Container.Register(static.ID, &static.Service{})
// you can register additional commands using cmd.CLI
- rr.Logger.Formatter = &logrus.TextFormatter{ForceColors: true}
rr.Execute()
}