mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 04:27:37 +03:00
Renamed project to CloudSonic
This commit is contained in:
parent
ce863f0f35
commit
c417a00e62
67 changed files with 190 additions and 196 deletions
12
main.go
12
main.go
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue