Invoking GAE/Go Local Development Server on Gogland

不想你离开。 提交于 2019-12-08 06:03:44

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/43243820/invoking-gae-go-local-development-server-on-gogland

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!