Separate DEV_MODE (for assets + templates) and DEBUG (for logs + special routes)
This commit is contained in:
parent
13a5bc65b6
commit
f7e06a3c12
3 changed files with 7 additions and 4 deletions
|
|
@ -7,8 +7,9 @@ import (
|
|||
)
|
||||
|
||||
type Config struct {
|
||||
Debug bool `env:"DEBUG"`
|
||||
App struct {
|
||||
Debug bool `env:"DEBUG"`
|
||||
DevMode bool `env:"DEV_MODE"`
|
||||
App struct {
|
||||
ListenAddress string `env:"APP_LISTEN_ADDRESS"`
|
||||
ListenPort uint `env:"APP_LISTEN_PORT"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue