Skip to content

Commit

Permalink
Merge pull request #195 from ipfs-force-community/chore/repo-env-var
Browse files Browse the repository at this point in the history
chore: add repo env var
  • Loading branch information
LinZexiao authored Dec 6, 2023
2 parents 9023b70 + 11a9241 commit d00c2e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cli/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"

"github.com/ipfs-force-community/sophon-auth/jwtclient"
"github.com/ipfs-force-community/sophon-auth/log"
"github.com/ipfs-force-community/sophon-auth/util"
"github.com/mitchellh/go-homedir"
"github.com/urfave/cli/v2"
Expand Down Expand Up @@ -62,7 +63,7 @@ func GetRepoPath(ctx *cli.Context) (string, error) {
return "", fmt.Errorf("check deprecated repo exist: %w", err)
}
if deprecatedRepoPathExist {
fmt.Printf("[WARM]: repo path %s is deprecated, please transfer to %s instead\n", deprecatedRepoPath, repoPath)
log.Infof("[WARM]: repo path %s is deprecated, please transfer to %s instead\n", deprecatedRepoPath, repoPath)
repoPath = deprecatedRepoPath
}
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func newApp() (app *cli.App) {
},
&cli.StringFlag{
Name: "repo",
EnvVars: []string{"VENUS_AUTH_PATH"},
EnvVars: []string{"VENUS_AUTH_PATH", "SOPHON_AUTH_PATH"},
Value: "~/.sophon-auth",
},
&cli.StringFlag{
Expand Down

0 comments on commit d00c2e1

Please sign in to comment.