Example #1
0
func initConfig() {
	customConfigExist := com.FileExist("custom/app.ini")
	if customConfigExist {
		ela.SetConfig("custom/app.ini")
		global.Install = false
	} else {
		global.Install = true
		configForInstall()
	}

	global.Config = ela.GetConfig()
}
Example #2
0
func configForInstall() {
	config := ela.GetConfig()
	config.SetInt("_", "port", 3001)
	config.SetString("_", "runmode", "dev")
}