env variables for server paths

This commit is contained in:
Ian Norden 2020-11-09 12:15:03 -06:00
parent 456043dc4c
commit f0a631109e

View File

@ -110,6 +110,8 @@ func init() {
}
func startServers(serv sd.IService) error {
viper.BindEnv("server.ipcPath", "SERVER_IPC_PATH")
viper.BindEnv("server.httpPath", "SERVER_HTTP_PATH")
ipcPath := viper.GetString("server.ipcPath")
httpPath := viper.GetString("server.httpPath")
if ipcPath == "" && httpPath == "" {