1
0
forked from x/icebergs

opt GOPROXY

This commit is contained in:
shylinux 2020-01-12 19:54:28 +08:00
parent b2098ea5cc
commit 1c7a937ef3

View File

@ -35,6 +35,7 @@ END
all: all:
@echo && date @echo && date
export GOPRIVATE=github.com export GOPRIVATE=github.com
export GOPROXY=https://goproxy.cn
go build -o ${ice_bin} ${main_go} && chmod u+x ${ice_bin} && ./${ice_sh} restart go build -o ${ice_bin} ${main_go} && chmod u+x ${ice_bin} && ./${ice_sh} restart
END END
@ -93,6 +94,8 @@ END
build() { build() {
export GOPRIVATE=github.com 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 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 cd $miss && prepare && go build -o ${ice_bin} ${main_go} && chmod u+x ${ice_bin} && ./${ice_sh} start serve dev
} }