我正在尝试将 Go echo 应用程序部署到弹性 beantalk。我正在使用 go modules 并且 go.mod 和 go.sum 被签入我的 repo 我的 repo 的根目录中也有以下文件
构建文件
build: go build -o bin/application application.go
档案
web: bin/application
每隔几次我部署一个构建 - 它会失败。当我登录到由弹性 beanstalk 创建的 ec2 实例并检查文件 /var/log/eb-activity.log - 我看到以下内容
creating: /var/app/staging/pkg/usermanagement/
inflating: /var/app/staging/pkg/usermanagement/usermanagement.go
inflating: /var/app/staging/pkg/usermanagement/usermanagement_test.go
creating: /var/app/staging/scripts/
inflating: /var/app/staging/scripts/00_init.sql
inflating: /var/app/staging/scripts/10_indices_for_loading.sql
inflating: /var/app/staging/scripts/20_indices_for_searching.sql
inflating: /var/app/staging/scripts/create_coded_adsbx.py
creating: /var/app/staging/scripts/db-data/
inflating: /var/app/staging/scripts/db-data/aircraft_current-2020-01-27-coded.csv
creating: /var/app/staging/scripts/db-data/localities_sys-shapefiles-admin-1/
它似乎没有下载所需的依赖项我想知道我是否遗漏了什么,应该将 go.mod 包含在我的仓库中(我不明白为什么不应该)
MMTTMM
相关分类