2017-09-21 12:40
浏览 57

goapp serve:不起作用,'goapp'不被识别为内部或外部命令

Cloud any help me,

I am trying to setup local development server from below link


I am getting below errors while using goapp serve command


'goapp' is not recognized as an internal or external command, operable program or batch file.

图片转代码服务由CSDN问答提供 功能建议


我正在尝试设置本地开发服务器 从下面的链接


使用goapp时出现以下错误 服务命令


'goapp'无法识别为内部或外部命令, operable程序或批处理文件。< / strong>

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dounei9043
    dounei9043 2017-09-22 13:37

    Assuming you've installed the Google Cloud SDK and then you installed the Go appengine with gcloud components install app-engine-go as instructed in this link.

    If you read through the instructions you'll find this paragraph:

    Cloud SDK excludes the appcfg and goapp commands. To continue using those commands, see the steps for downloading and installing the original App Engine SDK.

    That means that if you want to use goapp serve you need to install the original App Engine SDK for Go. Steps for installing it can be found at the bottom of the same page by clicking on the highlighted text "Or, you can download the original App Engine SDK for Go."

    But to run your app locally or eventually deploying to Google Cloud you don't need the original SDK. Having gcloud installed you also get the dev_appserver.py command, you can use this command instead of goapp serve to run a local development server like so: dev_appserver.py /path/to/myapp/app.yml.

    Keep in mind that:

    dev_appserver.py does not run in the App Engine flexible environment.

    点赞 评论