mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-03 09:09:47 +01:00
added support for developing newer-ui
This commit is contained in:
parent
290cdebc42
commit
83b603747c
6
main.go
6
main.go
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user