mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-15 19:02:27 +08:00
chore: add rdbms store
This commit is contained in:
@@ -149,10 +149,8 @@ func init() {
|
||||
panic(err)
|
||||
}
|
||||
// read run mode from env
|
||||
if runmode := os.Getenv("RUN_MODE"); runmode != "" {
|
||||
if runmode != ModeDev && runmode != ModeProd {
|
||||
panic("invalid RUN_MODE from env: " + runmode)
|
||||
}
|
||||
Conf.RunMode = ModeDev
|
||||
if runmode := os.Getenv("RUN_MODE"); runmode == ModeProd {
|
||||
Conf.RunMode = runmode
|
||||
}
|
||||
// read env
|
||||
|
||||
Reference in New Issue
Block a user