问题
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