struCoder / pmgo

pmgo is a process manager for Golang applications.
MIT License
625 stars 65 forks source link

Start application from user input compiled binary error #44

Open dicklei opened 5 years ago

dicklei commented 5 years ago

你好: 有些问题需要请教一下, 我想使用pmgo 同时启用二进制文件运行 但是我git checkout beta,编译报错 另外,这种通过传入二进制文件的方式好像运行不起来,有时候它不认true这个参数,有时出现FATA[0000] Failed to start go bin due to: ERROR

请问这些怎么解决?

struCoder commented 5 years ago

@dicklei 你好,感谢反馈,你在尝试写一个简单的webserver然后编译,在使用pmgo启动都不行?

dicklei commented 5 years ago

你好,不行的

helloworldpark commented 4 years ago

@dicklei @struCoder
I also had the same issue. In my case, the solution was to

  1. Kill all the pmgo processes
  2. Delete(or at least change the name of) ~/.pmgo/config.toml
  3. (Optional) When calling pmgo start, give flag --dns=":33333" (or any other arbitrary port number).

The case is that, if there are pmgo process already running(I'll call it the old one), the beta-version of pmgo fails to call the remote master process of the beta itself but calls the old one, i.e. there is a conflict. I think this part should be specified on the README.