File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 1616 - name : shellcheck
1717 uses : reviewdog/action-shellcheck@v1
1818 with :
19- github_token : ${{ secrets.GITHUB_TOKEN }}
19+ github_token : ${{ secrets.GORELEASER_GITHUB_TOKEN }}
2020 reporter : github-pr-review # Change reporter.
2121 path : " ." # Optional.
2222 pattern : " *.sh" # Optional.
3333 uses : reviewdog/action-golangci-lint@v2
3434 with :
3535 reporter : github-pr-review
36- github_token : ${{ secrets.GITHUB_TOKEN }}
36+ github_token : ${{ secrets.GORELEASER_GITHUB_TOKEN }}
3737 golangci_lint_flags : " --config=.golangci.yml"
3838 verify-labels :
3939 name : verify labels
Original file line number Diff line number Diff line change 1515package cmd
1616
1717import (
18+ "os"
19+ "path/filepath"
20+
1821 "github.com/muesli/coral"
1922 "github.com/pocketbase/pocketbase"
2023 "github.com/rs/zerolog/log"
@@ -32,8 +35,20 @@ var flyServerCmd = &coral.Command{
3235func flyServer (cmd * coral.Command , args []string ) {
3336 _ = "127.0.0.1:" + viper .GetString ("port" )
3437
38+ configDir , err := os .UserConfigDir ()
39+ if err != nil {
40+ log .Fatal ().Stack ().Err (err ).Msg ("Couldn't locate config dir" )
41+ }
42+
43+ configDir = filepath .Join (configDir , "vbs" )
44+
45+ os .MkdirAll (configDir , os .ModePerm )
46+
3547 log .Debug ().Msgf ("running pocketbase\n " )
36- app := pocketbase .New ()
48+ app := pocketbase .NewWithConfig (pocketbase.Config {
49+ DefaultDataDir : configDir ,
50+ })
51+
3752 if err := app .Start (); err != nil {
3853 log .Fatal ().Err (err ).Msg ("error starting pocketbase" )
3954 }
You can’t perform that action at this time.
0 commit comments