Renamed project to CloudSonic

This commit is contained in:
Deluan 2017-04-01 09:47:14 -04:00
parent ce863f0f35
commit c417a00e62
67 changed files with 190 additions and 196 deletions

12
main.go
View file

@ -4,19 +4,19 @@ import (
"fmt"
"github.com/astaxie/beego"
"github.com/deluan/gosonic/conf"
_ "github.com/deluan/gosonic/init"
_ "github.com/deluan/gosonic/tasks"
"github.com/cloudsonic/sonic-server/conf"
_ "github.com/cloudsonic/sonic-server/init"
_ "github.com/cloudsonic/sonic-server/tasks"
)
func main() {
conf.LoadFromLocalFile()
conf.LoadFromFlags()
beego.BConfig.RunMode = conf.GoSonic.RunMode
beego.BConfig.Listen.HTTPPort = conf.GoSonic.Port
beego.BConfig.RunMode = conf.Sonic.RunMode
beego.BConfig.Listen.HTTPPort = conf.Sonic.Port
fmt.Printf("\nGoSonic v%s (%s mode)\n\n", "0.1", beego.BConfig.RunMode)
fmt.Printf("\nCloudSonic Server v%s (%s mode)\n\n", "0.1", beego.BConfig.RunMode)
if beego.BConfig.RunMode == "prod" {
beego.SetLevel(beego.LevelInformational)
}