尝试交叉编译

This commit is contained in:
Minho 2017-05-03 16:05:33 +08:00
parent d02aad28b9
commit d067bd6124

View File

@ -36,5 +36,10 @@ if [ ! -z $HTTP_PORT] ; then
sed -i 's/^httpport.*/httpport='$HTTP_PORT'/g' conf/app.conf
fi
for GOOS in darwin linux windows; do
for GOARCH in 386 amd64; do
go build -v -o godoc-$GOOS-$GOARCH
done
done
/go/src/github.com/lifei6671/godoc/godoc
/go/src/github.com/lifei6671/godoc/godoc-linux-amd64