Skip to content

Commit

Permalink
Make application gin compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
hamidfzm committed Sep 21, 2018
1 parent 21b0ff9 commit 7bf2f3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,5 @@ Temporary Items
.apdisk

vendor/

gin-bin
1 change: 1 addition & 0 deletions helpers/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func init() {
viper.SetDefault("debug", false)
viper.SetDefault("secret", "secret")
viper.SetDefault("db_name", "data/timechi.db")
viper.BindEnv("port", "PORT")
}

func initConfig() {
Expand Down

0 comments on commit 7bf2f3b

Please sign in to comment.