jjzjj

google-app-engine - appengine dispatch.yaml 没有找到我的模块?

coder 2024-07-10 原文

为什么使用此调度配置会出现以下错误?

https://github.com/gertcuykens/gcl-11/tree/master/server%20go

Mac:server go gert$ /Users/gert/Desktop/IdeaProjects/toolbox/serve.sh dispatch.yaml www/www.yaml default
Traceback (most recent call last):
  File "/Users/gert/Documents/sdk-appengine/dev_appserver.py", line 82, in <module>
    _run_file(__file__, globals())
  File "/Users/gert/Documents/sdk-appengine/dev_appserver.py", line 78, in _run_file
    execfile(_PATHS.script_file(script_name), globals_)
  File "/Users/gert/Documents/sdk-appengine/google/appengine/tools/devappserver2/devappserver2.py", line 970, in <module>
    main()
  File "/Users/gert/Documents/sdk-appengine/google/appengine/tools/devappserver2/devappserver2.py", line 963, in main
    dev_server.start(options)
  File "/Users/gert/Documents/sdk-appengine/google/appengine/tools/devappserver2/devappserver2.py", line 714, in start
    options.config_paths, options.app_id)
  File "/Users/gert/Documents/sdk-appengine/google/appengine/tools/devappserver2/application_configuration.py", line 678, in __init__
    'file.' % sorted(missing_modules))
google.appengine.tools.devappserver2.errors.InvalidAppConfigError: Modules [u'www'] specified in dispatch.yaml are not defined by a yaml file.
Mac:server go gert$ 

模块在没有 dispatch.yaml 的情况下也能工作吗?

Mac:server go gert$ /Users/gert/Desktop/IdeaProjects/toolbox/serve.sh www/www.yaml default
INFO     2014-08-24 22:26:51,886 sdk_update_checker.py:242] Checking for updates to the SDK.
WARNING  2014-08-24 22:26:52,241 api_server.py:383] Could not initialize images API; you are likely missing the Python "PIL" module.
INFO     2014-08-24 22:26:52,244 api_server.py:171] Starting API server at: http://localhost:58746
INFO     2014-08-24 22:26:52,249 dispatcher.py:183] Starting module "wwww" running at: http://localhost:8080
INFO     2014-08-24 22:26:52,253 dispatcher.py:183] Starting module "default" running at: http://localhost:8081
INFO     2014-08-24 22:26:52,256 admin_server.py:117] Starting admin server at: http://localhost:8000

最佳答案

事实证明,“www”是一个特殊的名称,如果我将它重命名为例如“static”,它就可以工作...上帝$^*(&^)它!

关于google-app-engine - appengine dispatch.yaml 没有找到我的模块?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25476887/

有关google-app-engine - appengine dispatch.yaml 没有找到我的模块?的更多相关文章

  1. ruby - 难道Lua没有和Ruby的method_missing相媲美的东西吗? - 2

    我好像记得Lua有类似Ruby的method_missing的东西。还是我记错了? 最佳答案 表的metatable的__index和__newindex可以用于与Ruby的method_missing相同的效果。 关于ruby-难道Lua没有和Ruby的method_missing相媲美的东西吗?,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/7732154/

  2. ruby - 如何使用文字标量样式在 YAML 中转储字符串? - 2

    我有一大串格式化数据(例如JSON),我想使用Psychinruby​​同时保留格式转储到YAML。基本上,我希望JSON使用literalstyle出现在YAML中:---json:|{"page":1,"results":["item","another"],"total_pages":0}但是,当我使用YAML.dump时,它不使用文字样式。我得到这样的东西:---json:!"{\n\"page\":1,\n\"results\":[\n\"item\",\"another\"\n],\n\"total_pages\":0\n}\n"我如何告诉Psych以想要的样式转储标量?解

  3. ruby-on-rails - rails 目前在重启后没有安装 - 2

    我有一个奇怪的问题:我在rvm上安装了ruby​​onrails。一切正常,我可以创建项目。但是在我输入“railsnew”时重新启动后,我有“程序'rails'当前未安装。”。SystemUbuntu12.04ruby-v"1.9.3p194"gemlistactionmailer(3.2.5)actionpack(3.2.5)activemodel(3.2.5)activerecord(3.2.5)activeresource(3.2.5)activesupport(3.2.5)arel(3.0.2)builder(3.0.0)bundler(1.1.4)coffee-rails(

  4. ruby - 在没有 sass 引擎的情况下使用 sass 颜色函数 - 2

    我想在一个没有Sass引擎的类中使用Sass颜色函数。我已经在项目中使用了sassgem,所以我认为搭载会像以下一样简单:classRectangleincludeSass::Script::FunctionsdefcolorSass::Script::Color.new([0x82,0x39,0x06])enddefrender#hamlengineexecutedwithcontextofself#sothatwithintemlateicouldcall#%stop{offset:'0%',stop:{color:lighten(color)}}endend更新:参见上面的#re

  5. ruby - RuntimeError(自动加载常量 Apps 多线程时检测到循环依赖 - 2

    我收到这个错误:RuntimeError(自动加载常量Apps时检测到循环依赖当我使用多线程时。下面是我的代码。为什么会这样?我尝试多线程的原因是因为我正在编写一个HTML抓取应用程序。对Nokogiri::HTML(open())的调用是一个同步阻塞调用,需要1秒才能返回,我有100,000多个页面要访问,所以我试图运行多个线程来解决这个问题。有更好的方法吗?classToolsController0)app.website=array.join(',')putsapp.websiteelseapp.website="NONE"endapp.saveapps=Apps.order("

  6. ruby-on-rails - 每次我尝试部署时,我都会得到 - (gcloud.preview.app.deploy) 错误响应 : [4] DEADLINE_EXCEEDED - 2

    我是Google云的新手,我正在尝试对其进行首次部署。我的第一个部署是RubyonRails项目。我基本上是在关注thisguideinthegoogleclouddocumentation.唯一的区别是我使用的是我自己的项目,而不是他们提供的“helloworld”项目。这是我的app.yaml文件runtime:customvm:trueentrypoint:bundleexecrackup-p8080-Eproductionconfig.ruresources:cpu:0.5memory_gb:1.3disk_size_gb:10当我转到我的项目目录并运行gcloudprevie

  7. ruby-on-rails - 如何重命名或移动 Rails 的 README_FOR_APP - 2

    当我在我的Rails应用程序根目录中运行rakedoc:app时,API文档是使用/doc/README_FOR_APP作为主页生成的。我想向该文件添加.rdoc扩展名,以便它在GitHub上正确呈现。更好的是,我想将它移动到应用程序根目录(/README.rdoc)。有没有办法通过修改包含的rake/rdoctask任务在我的Rakefile中执行此操作?是否有某个地方可以查找可以修改的主页文件的名称?还是我必须编写一个新的Rake任务?额外的问题:Rails应用程序的两个单独文件/README和/doc/README_FOR_APP背后的逻辑是什么?为什么不只有一个?

  8. ruby - 一个 YAML 对象可以引用另一个吗? - 2

    我想让一个yaml对象引用另一个,如下所示:intro:"Hello,dearuser."registration:$introThanksforregistering!new_message:$introYouhaveanewmessage!上面的语法只是它如何工作的一个例子(这也是它在thiscpanmodule中的工作方式。)我正在使用标准的ruby​​yaml解析器。这可能吗? 最佳答案 一些yaml对象确实引用了其他对象:irb>require'yaml'#=>trueirb>str="hello"#=>"hello"ir

  9. 没有类的 Ruby 方法? - 2

    大家好!我想知道Ruby中未使用语法ClassName.method_name调用的方法是如何工作的。我头脑中的一些是puts、print、gets、chomp。可以在不使用点运算符的情况下调用这些方法。为什么是这样?他们来自哪里?我怎样才能看到这些方法的完整列表? 最佳答案 Kernel中的所有方法都可用于Object类的所有对象或从Object派生的任何类。您可以使用Kernel.instance_methods列出它们。 关于没有类的Ruby方法?,我们在StackOverflow

  10. ruby-on-rails - Rails 3,嵌套资源,没有路由匹配 [PUT] - 2

    我真的为这个而疯狂。我一直在搜索答案并尝试我找到的所有内容,包括相关问题和stackoverflow上的答案,但仍然无法正常工作。我正在使用嵌套资源,但无法使表单正常工作。我总是遇到错误,例如没有路线匹配[PUT]"/galleries/1/photos"表格在这里:/galleries/1/photos/1/edit路线.rbresources:galleriesdoresources:photosendresources:galleriesresources:photos照片Controller.rbdefnew@gallery=Gallery.find(params[:galle

随机推荐