-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go打包后的程序,用cmd可以运行,但是用egg的cross.run调用后就无法运行 #102
Comments
是用框架的 ee-go 写的还是,直接用来一个第三方go编译的 exe 程序。 |
用的第三方的框架开发的go程序,已经长期稳定运行了半年多了。。。。。。。 |
cross.run go程序的时候,如果传入了go程序内不存在的参数(命令行参数),就可能导致go报错。 框架会默认传入port参数,你在go里面flag获取这个参数,处理或者不处理都行。建议处理一下。 这样能避免go服务的端口被占用时,启动失败 |
了解了,后来我没用cross.run,用了spawn直接拉起了go-server.exe,就没啥问题了,谢谢 |
保存信息如下:
从字面信息看是用了
c
可是我在终端中直接运行这个go的程序是可以正常运行的
The text was updated successfully, but these errors were encountered: