douyue9704 2017-04-06 00:41
浏览 59
已采纳

在Gogland上调用GAE / Go Local Development Server

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.

enter image description here

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

"C:\Program Files (x86)\JetBrains\Gogland 171.3780.106\binunnerw.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

enter image description here

How can I fix?

  • 写回答

1条回答 默认 最新

  • duanhuang4841 2017-04-07 10:50
    关注

    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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 孟德尔随机化结果不一致
  • ¥15 深度学习残差模块模型
  • ¥20 两个不同Subnet的点对点连接
  • ¥50 怎么判断同步时序逻辑电路和异步时序逻辑电路
  • ¥15 差动电流二次谐波的含量Matlab计算
  • ¥15 Can/caned 总线错误问题,错误显示控制器要发1,结果总线检测到0
  • ¥15 C#如何调用串口数据
  • ¥15 MATLAB与单片机串口通信
  • ¥15 L76k模块的GPS的使用
  • ¥15 请帮我看一看数电项目如何设计