mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-23 14:30:26 +02:00
added BugStage update command
This commit is contained in:
1 parent
240a056144
commit
b5eb256632
7 files changed
+603
-5
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user