diff --git a/template.sh b/template.sh index 5818bce1..93bcc542 100755 --- a/template.sh +++ b/template.sh @@ -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 }