summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Treusch von Buttlar <martin.tvb@vitraum.de>2017-05-22 09:23:23 +0200
committerMartin Treusch von Buttlar <martin.tvb@vitraum.de>2017-05-22 09:23:23 +0200
commit4854ce1d4e3adca3b416a564a8d0018448808e52 (patch)
treeeb50db402f8eba140a48c843af2472df7012d72a
parent9f4c550b8be0f80fd670f7ded32dbd4aab8d1f4e (diff)
remove use of viper to parse env variables
-rw-r--r--cmd/ponzu/main.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/cmd/ponzu/main.go b/cmd/ponzu/main.go
index fc9757d..acbe214 100644
--- a/cmd/ponzu/main.go
+++ b/cmd/ponzu/main.go
@@ -21,7 +21,6 @@ import (
"github.com/ponzu-cms/ponzu/system/db"
"github.com/ponzu-cms/ponzu/system/tls"
"github.com/spf13/cobra"
- "github.com/spf13/viper"
_ "github.com/ponzu-cms/ponzu/content"
)
@@ -190,13 +189,6 @@ func init() {
pflags := rootCmd.PersistentFlags()
pflags.StringVar(&gocmd, "gocmd", "go", "custom go command if using beta or new release of Go")
-
- viper.SetEnvPrefix("PONZU")
- viper.BindPFlag("gocmd", pflags.Lookup("gocmd"))
- // bind the flags for run to environment variables, with PONZU_ prefix.
- viper.BindPFlag("port", runCmd.Flags().Lookup("port"))
- viper.BindPFlag("httpsport", runCmd.Flags().Lookup("httpsport"))
- viper.BindPFlag("devhttps", runCmd.Flags().Lookup("devhttps"))
}
func main() {