forked from x/icebergs
opt GOPROXY
This commit is contained in:
parent
b2098ea5cc
commit
1c7a937ef3
@ -35,6 +35,7 @@ END
|
||||
all:
|
||||
@echo && date
|
||||
export GOPRIVATE=github.com
|
||||
export GOPROXY=https://goproxy.cn
|
||||
go build -o ${ice_bin} ${main_go} && chmod u+x ${ice_bin} && ./${ice_sh} restart
|
||||
END
|
||||
|
||||
@ -93,6 +94,8 @@ END
|
||||
|
||||
build() {
|
||||
export GOPRIVATE=github.com
|
||||
export GOPROXY=https://goproxy.cn
|
||||
go build -o ${ice_bin} ${main_go} && chmod u+x ${ice_bin} && ./${ice_sh} restart
|
||||
miss=./ && [ "$1" != "" ] && miss=$1 && shift && mkdir $miss
|
||||
cd $miss && prepare && go build -o ${ice_bin} ${main_go} && chmod u+x ${ice_bin} && ./${ice_sh} start serve dev
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user