在Gogland上调用GAE / Go本地开发服务器 [英] Invoking GAE/Go Local Development Server on Gogland

查看:229
本文介绍了在Gogland上调用GAE / Go本地开发服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Gogland上调用GAE / Go本地开发服务器?

在运行/调试配置窗口中,我有警告Go SDK未指定,但我无法找到如何设置Go SDK。





即使那时我按了OK,然后用Run - > Run'Unnamed'调用,我得到了这个错误。

 C:\ Program Files(x86)\JetBrains\Gogland 171.3780.106\bin\runnerw.exeC:/Go\bin\go.exe服务C:/ path / to / app .yaml 
go:未知子命令serve
运行'go help'用法。

程序完成退出代码2



我该如何解决?

解决方案

错误的原因是一个普通的Go发行版被用作 SDK GOROOT )。



要运行GAE Go应用程序,您需要使用 GAE Go SDK 作为 GOROOT 。更改 GOROOT 可通过设置文件|设置|转到| GOROOT


How can I invoke GAE/Go local development server on Gogland?

In Run/Debug Configuration window, I have the warning "Go SDK is not specified", but I can't find how I can set Go SDK.

Even then I pressed OK, and invoked with Run -> Run 'Unnamed', I got this error.

"C:\Program Files (x86)\JetBrains\Gogland 171.3780.106\bin\runnerw.exe" C:/Go\bin\go.exe serve C:/path/to/app.yaml
go: unknown subcommand "serve"
Run 'go help' for usage.

Process finished with exit code 2

How can I fix?

解决方案

The reason of the error is that a regular Go distribution is used as an SDK (GOROOT).

To run GAE Go application you need to use GAE Go SDK as a GOROOT. Changing GOROOT is available via settings File | Setting | Go | GOROOT

这篇关于在Gogland上调用GAE / Go本地开发服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆