Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services 使用Make文件生成颤振和Golang的gRPC文件_Amazon Web Services_Go_Protocol Buffers_Protocol Buffers 3 - Fatal编程技术网

Amazon web services 使用Make文件生成颤振和Golang的gRPC文件

Amazon web services 使用Make文件生成颤振和Golang的gRPC文件,amazon-web-services,go,protocol-buffers,protocol-buffers-3,Amazon Web Services,Go,Protocol Buffers,Protocol Buffers 3,如果我想使用以下配置在Amazon AWS EC2上部署Golang服务器,这是正确的Make文件代码吗: 以下是生成文件的代码: 装运包装 假设用户在MacOS上,如果是其他操作系统,请将PROTO_ROOT_DIR更改为protobuf安装路径PROTO_ROOT_DIR=$(shell brew --前缀)/酒窖/protobuf/3.6.0/include项目名称=你好grpc Dart还要求您手动发送所有谷歌提供的原型文件。 _gendart:@mkdir-p model/gen/s

如果我想使用以下配置在Amazon AWS EC2上部署Golang服务器,这是正确的Make文件代码吗:

以下是生成文件的代码:

装运包装 假设用户在MacOS上,如果是其他操作系统,请将PROTO_ROOT_DIR更改为protobuf安装路径PROTO_ROOT_DIR=$(shell brew --前缀)/酒窖/protobuf/3.6.0/include项目名称=你好grpc

Dart还要求您手动发送所有谷歌提供的原型文件。 _gendart:@mkdir-p model/gen/ship/dart@protoc-I=model/protodefs--dart\u out=grpc:model/gen/ship/dart model/protodefs/.proto@protoc-I$(proto\u ROOT\u DIR)--dart\u out=model/gen/ship/dart$(proto\u ROOT\u DIR)/google/protobuf/.proto

_gengo:@mkdir-pmodel/gen@protoc-I=model/protodefs--go_out=plugins=grpc:model/gen-model/protodefs/*.proto

将军:将军

build:get gen@env CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags'-w-extldflags'-static'-o build/${PROJECT\u NAME}\u linux\u amd64@env GOARCH=amd64 go build -ldflags'-w-extldflags'-static'-o build/${PROJECT_NAME}{macosx_amd64

get:@go get-u github.com/golang/dep/cmd/dep@dep

安装:get gen@cp config_template.json config.json

我的困惑是,对于使用上述配置为Amazon AWS EC2构建文件,我需要使用(假设我的服务器go文件名是main):

GOOS=linux-GOARCH=amd64 go-build-o main

但在Make文件中,这一行提到了“GOARCH=386”:

build:get gen@env CGO_ENABLED=0 GOOS=linux GOARCH=386 go build

在为上述Amazon AWS EC2实例在Mac OS上构建Go gRPC服务器时,什么是正确的生成文件代码

请帮助我:(