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.go11
1 files changed, 4 insertions, 7 deletions
diff --git a/cmd/rr/main.go b/cmd/rr/main.go
index 01a5aaf3..18e22cdd 100644
--- a/cmd/rr/main.go
+++ b/cmd/rr/main.go
@@ -23,9 +23,7 @@
package main
import (
- // colorful logging
"github.com/sirupsen/logrus"
-
rr "github.com/spiral/roadrunner/cmd/rr/cmd"
// services (plugins)
@@ -34,19 +32,18 @@ import (
"github.com/spiral/roadrunner/service/rpc"
"github.com/spiral/roadrunner/service/static"
- // additional command handlers
+ // additional command and debug handlers
_ "github.com/spiral/roadrunner/cmd/rr/http"
)
func main() {
- rr.Logger.Formatter = &logrus.TextFormatter{ForceColors: true}
-
- rr.Container.Register(env.ID, env.NewService(map[string]string{"rr": rr.Version}))
-
+ 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{})
+ rr.Logger.Formatter = &logrus.TextFormatter{ForceColors: true}
+
// you can register additional commands using cmd.CLI
rr.Execute()
}