你好,世界!Google 应用引擎问题

0 投票
2 回答
532 浏览
提问于 2025-04-18 16:19

我在使用Mac,第一次尝试使用谷歌应用引擎。我安装了正确版本的Python。我创建了一个新的应用程序,命名为“helloworld”,并且没有更改创建新应用时自动生成的所有文件。在按下运行后,我可以在浏览器的localhost:8081上看到输出“Hello, world!”;但是,当我部署应用时,日志中出现了以下错误:

*** Running appcfg.py with the following flags:
    --no_cookies --email=killianjackson99@gmail.com --passin update
02:28 PM Application: heythereworld; version: 1
02:28 PM Host: appengine.google.com
02:28 PM 
Starting update of app: heythereworld, version: 1
02:28 PM Getting current resource limits.
02:28 PM Scanning files on local disk.
Error 404: --- begin server output ---
This application does not exist (app_id=u'heythereworld').
--- end server output ---
Password for killianjackson99@gmail.com: If deploy fails you might need to 'rollback' manually.
The "Make Symlinks..." menu option can help with command-line work.
*** appcfg.py has finished with exit code 1 ***

有没有人能帮我想想可能出什么问题了?

2 个回答

0

在开发者控制台里创建你的项目。
然后在 app.yaml 文件中添加你在控制台输入的名称:

application: my_app_name
version: 1
runtime: python27
api_version: 1
threadsafe: true

handlers:
- url: /.*
  script: helloworld.application
0

在把你的应用程序放到谷歌的应用引擎服务器上之前,你需要在谷歌开发者控制台创建一个项目。你可以在这里找到控制台:https://console.developers.google.com/project。关于如何部署应用程序的所有信息都在这里:https://developers.google.com/appengine/docs/python/gettingstartedpython27/uploading

撰写回答