在 openshift 上启动 Yesod 应用程序时出错 - 命令行参数?

Error when starting Yesod app on openshift - command line args?

在 openshift 上(重新)启动我的 Yesod 应用程序时出现以下错误:

server: InvalidYaml (Just (YamlException "Yaml file not found: xxx.xxx.xxx.xxx"))

其中 xxx.xxx.xxx.xxx 是 IP 地址。我确实找到了一个 Heroku+Yesod 问题的 link 说了一些关于 "removing an argument" 但它没有说从哪里,当然 scripts/settings 在这种情况下会有所不同开班。知道这个错误是什么以及如何克服它吗?

根据问题,我假设您使用的是标准脚手架。如果您查看 code, you'll find that uses loadAppSettingsArgs,它被描述为:

Same as loadAppSettings, but get the list of runtime config files from the command line arguments.

如果您不想关注命令行参数,只需将对 loadAppSettingsArgs 的调用替换为 loadAppSettings []