removed git path lookups and updated examples/base .gitignore
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
pb_data/
|
||||
pb_public/
|
||||
pb_migrations/
|
||||
# ignore everything
|
||||
/*
|
||||
|
||||
# exclude from the ignore filter
|
||||
!.gitignore
|
||||
!main.go
|
||||
|
||||
@@ -3,7 +3,6 @@ package main
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
|
||||
"github.com/pocketbase/pocketbase"
|
||||
"github.com/pocketbase/pocketbase/plugins/jsvm"
|
||||
@@ -27,11 +26,10 @@ func main() {
|
||||
)
|
||||
|
||||
var automigrate bool
|
||||
_, gitErr := exec.LookPath("git")
|
||||
app.RootCmd.PersistentFlags().BoolVar(
|
||||
&automigrate,
|
||||
"automigrate",
|
||||
gitErr == nil,
|
||||
true,
|
||||
"enable/disable auto migrations",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user