首页 > 解决方案 > 运行 Go 程序的实现启动,输出 exec: not started

问题描述

当我运行realize startGo 程序时,我得到了这个错误结果

[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

标签: configuration

解决方案


这个命令对我有用

#!/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


推荐阅读