chore: fix phony init-db and go proxy
This commit is contained in:
parent
15856ec359
commit
1b4b974e03
2
Makefile
2
Makefile
@ -11,7 +11,7 @@ DB_NAME := account
|
||||
DB_USER := shenlan
|
||||
DB_PASS := password
|
||||
DB_HOST := 127.0.0.1
|
||||
DB_PORT := 5432
|
||||
DB_PORT := 15432
|
||||
DB_URL := postgres://$(DB_USER):$(DB_PASS)@$(DB_HOST):$(DB_PORT)/$(DB_NAME)?sslmode=disable
|
||||
|
||||
REPLICATION_MODE ?= pgsync
|
||||
|
||||
@ -23,10 +23,6 @@ if ! command -v go >/dev/null; then
|
||||
fi
|
||||
|
||||
echo ">>> 配置 Go Proxy"
|
||||
if curl -fsSL --max-time 5 https://goproxy.cn >/dev/null; then
|
||||
go env -w GOPROXY=https://goproxy.cn,direct
|
||||
else
|
||||
go env -w GOPROXY=https://proxy.golang.org,direct
|
||||
fi
|
||||
go env -w GOPROXY=https://proxy.golang.org,direct
|
||||
|
||||
go mod tidy
|
||||
|
||||
Loading…
Reference in New Issue
Block a user