Small update for dev env
This commit is contained in:
parent
312200e210
commit
ab7de31a10
4
main.go
4
main.go
|
@ -17,6 +17,7 @@ func main() {
|
||||||
var (
|
var (
|
||||||
service_name = cfg.GetString("name")
|
service_name = cfg.GetString("name")
|
||||||
grpc_enable = cfg.GetBool("services.grpc.enable")
|
grpc_enable = cfg.GetBool("services.grpc.enable")
|
||||||
|
dev_env = cfg.GetBool("dev_env")
|
||||||
)
|
)
|
||||||
|
|
||||||
storage, err := storage.NewStorage(cfg)
|
storage, err := storage.NewStorage(cfg)
|
||||||
|
@ -27,6 +28,9 @@ func main() {
|
||||||
handler := handlers.NewHandler(cfg, storage)
|
handler := handlers.NewHandler(cfg, storage)
|
||||||
|
|
||||||
fmt.Println("Running", service_name, ":")
|
fmt.Println("Running", service_name, ":")
|
||||||
|
if dev_env {
|
||||||
|
fmt.Printf("\033]0;%s\007", service_name)
|
||||||
|
}
|
||||||
|
|
||||||
failed := make(chan error)
|
failed := make(chan error)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue