Skip to content

Commit

Permalink
fix: wrong environment variable name in config
Browse files Browse the repository at this point in the history
  • Loading branch information
Dara Hayes committed Feb 22, 2018
1 parent b0c2ebf commit 21cef30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func getEnv(key string, defaultVal string) string {
func GetConfig() *config {
return &config{
DBHost: getEnv("PGHOST", "localhost"),
DBUser: getEnv("PGPORT", "postgres"),
DBUser: getEnv("PGUSER", "postgres"),
DBPassword: getEnv("PGPASSWORD", "postgres"),
DBName: getEnv("PGDATABASE", "aerogear_mobile_metrics"),
SSLMode: getEnv("PGSSLMODE", "disable"),
Expand Down

0 comments on commit 21cef30

Please sign in to comment.