configuration - 运行 Go 程序的实现启动,输出 exec: not started
问题描述
当我运行realize start
Go 程序时,我得到了这个错误结果
[14:55:13][V2-USER-API.YUMMY.ID] : Watching 159 file/s 118 folder/s
[14:55:13][V2-USER-API.YUMMY.ID] : Install started
[14:55:13][V2-USER-API.YUMMY.ID] : Install
exec: not started
我已经设置了我的文件 .realize.yaml,就像这样
settings:
legacy:
force: false
interval: 0s
schema:
- name: v2-user-api.yummy.id
path: ./cmd/server
commands:
run:
status: true
watcher:
extensions:
- go
paths:
- ../../
ignored_paths:
- .git
- .realize
- vendor
但是运行后我得到了错误realize start
解决方案
这个命令对我有用
#!/usr/bin/env bash
export GO111MODULE=off
cd ~/
go get github.com/oxequa/realize
cd /go/src/github.com/oxequa/realize && \
git fetch && \
git checkout v2.0.2 && \
go get github.com/oxequa/realize
RV=$(realize --version)
echo "Realize installed @: $RV"
export GO111MODULE=on
使用实现版v2.0.2
推荐阅读
- c# - C# - 如何限制在多个 OU 内使用特定部门的 DirectorySearcher 搜索用户?
- javascript - 展平嵌套对象时提高 Big-O 值
- javascript - 如何使用按钮将一个 JS 页面链接到另一个 JS 页面
- firefox - 由于签名,修改现有的 Firefox 扩展不起作用
- gephi - Gephi - 50% 的节点没有数据标签
- ios - 无法安装构建 Xcode 11.7
- javascript - 在导航期间管理表单状态 - Django
- python - 在本地(非 Azure)docker 实例中使用来自 Azure 源的 python 包
- javascript - Webpack configuration in Gatsby, naming conventions
- ios - 'React/RCTBridgeDelegate.h' 文件未找到 React Native 和 XCode