added support for developing newer-ui

This commit is contained in:
kunw 2016-04-11 15:03:11 +08:00
parent 290cdebc42
commit 83b603747c

View File

@ -20,13 +20,14 @@ import (
log "github.com/vmware/harbor/utils/log"
"os"
_ "github.com/vmware/harbor/auth/db"
_ "github.com/vmware/harbor/auth/ldap"
"github.com/vmware/harbor/dao"
"github.com/vmware/harbor/models"
_ "github.com/vmware/harbor/routers"
"os"
_ "github.com/vmware/harbor/routers/ng"
"github.com/astaxie/beego"
)
@ -67,6 +68,7 @@ func updateInitPassword(userID int, password string) error {
func main() {
beego.BConfig.WebConfig.Session.SessionOn = true
beego.AddTemplateExt("htm")
dao.InitDB()
if err := updateInitPassword(adminUserID, os.Getenv("HARBOR_ADMIN_PASSWORD")); err != nil {
log.Error(err)