added BugStage update command

This commit is contained in:
Gani Georgiev committed 2026-10-22 12:59:10 +03:00
1 parent 240a056144
commit b5eb256632
7 files changed
+603 -5

No files matched your search

+7 -3
View File
@@ -9,9 +9,9 @@ import (
"github.com/pocketbase/pocketbase"
"github.com/pocketbase/pocketbase/apis"
"github.com/pocketbase/pocketbase/core"
"github.com/pocketbase/pocketbase/plugins/ghupdate"
"github.com/pocketbase/pocketbase/plugins/jsvm"
"github.com/pocketbase/pocketbase/plugins/migratecmd"
"github.com/pocketbase/pocketbase/plugins/update"
"github.com/pocketbase/pocketbase/tools/hook"
"github.com/pocketbase/pocketbase/tools/osutils"
)
@@ -100,8 +100,12 @@ func main() {
Dir: migrationsDir,
})
// GitHub selfupdate
ghupdate.MustRegister(app, app.RootCmd, ghupdate.Config{})
// update command
update.MustRegister(app, app.RootCmd, update.Config{
BaseURL: "https://ganigeorgiev.com",
Project: "pocketbase",
Repository: "pocketbase",
})
// static route to serves files from the provided public dir
// (if publicDir exists and the route path is not already defined)