fusen-render/main/main.go
2023-08-16 13:16:27 +08:00

30 lines
401 B
Go

package main
import (
"flag"
"fmt"
"fusenrender"
"log"
)
var configEnv string
func init() {
log.SetFlags(log.Llongfile)
flag.StringVar(&configEnv, "etc", "a", "配置环境(etc文件)")
}
func main() {
flag.Parse()
configFile := fmt.Sprintf("../etc/etc_%s.yaml", configEnv)
svc, err := fusenrender.LoadConfig(configFile)
if err != nil {
panic(err)
}
fusenrender.StartNode(svc)
}