mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-11-22 20:22:43 +00:00
Convert to gormigrate
This commit is contained in:
1 parent
2b3bef186c
commit
6c72c63532
15 files changed
+639
-1803
No files matched your search
@@ -15,6 +15,7 @@ import (
|
||||
"npm/internal/jobqueue"
|
||||
"npm/internal/jwt"
|
||||
"npm/internal/logger"
|
||||
"npm/internal/migrations"
|
||||
|
||||
// properly respect available cpu cores
|
||||
_ "go.uber.org/automaxprocs"
|
||||
@@ -29,7 +30,7 @@ func main() {
|
||||
config.CreateDataFolders()
|
||||
logger.Info("Build Version: %s (%s)", version, commit)
|
||||
|
||||
database.Migrate(func() {
|
||||
migrations.Migrate(func() {
|
||||
if err := jwt.LoadKeys(); err != nil {
|
||||
logger.Error("KeysError", err)
|
||||
os.Exit(1)
|
||||
|
||||
Reference in new issue
Block a user