在Gogland上调用GAE / Go本地开发服务器 [英] Invoking GAE/Go Local Development Server on Gogland
问题描述
如何在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屋!