如何解决“耙子中止!”的问题未初始化的常量{我的应用程序名称}”?

发布于 2025-01-07 18:06:37 字数 814 浏览 2 评论 0原文

在“上限部署”期间,我最终收到以下错误消息:

  * executing `deploy:migrate'
  * executing "cd /home/{username}/rails1/releases/20120221084010 && bundle exec rake RAILS_ENV=production  db:migrate"
    servers: ["ny.railshoster.de"]
    [ny.railshoster.de] executing command
 ** [out :: ny.railshoster.de] /home/{username}/rails1/shared/bundle/ruby/1.9.1/gems/ffi-1.0.9/lib/ffi/platform.rb:27: Use RbConfig instead of obsolete and deprecated Config.
 ** [out :: ny.railshoster.de] rake aborted!
 ** [out :: ny.railshoster.de] uninitialized constant {My App Name}
 ** [out :: ny.railshoster.de] 
 ** [out :: ny.railshoster.de] (See full trace by running task with --trace)
    command finished in 1990ms

虽然我不知道出了什么问题,但对我来说这看起来并不是一个严重的问题。有没有简单的方法可以解决这个问题?在服务器上,也就是生产环境,使用的是mysql数据库。感谢您的任何建议。

During a "cap deploy" i end up with the following error messages:

  * executing `deploy:migrate'
  * executing "cd /home/{username}/rails1/releases/20120221084010 && bundle exec rake RAILS_ENV=production  db:migrate"
    servers: ["ny.railshoster.de"]
    [ny.railshoster.de] executing command
 ** [out :: ny.railshoster.de] /home/{username}/rails1/shared/bundle/ruby/1.9.1/gems/ffi-1.0.9/lib/ffi/platform.rb:27: Use RbConfig instead of obsolete and deprecated Config.
 ** [out :: ny.railshoster.de] rake aborted!
 ** [out :: ny.railshoster.de] uninitialized constant {My App Name}
 ** [out :: ny.railshoster.de] 
 ** [out :: ny.railshoster.de] (See full trace by running task with --trace)
    command finished in 1990ms

Although i have no idea what went wrong, it doesn't look like a dramatic problem to me. Is there an easy way to solve this? On the server, which is the production environment, a mysql database is used. Thank you for any suggestions.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

瑾兮 2025-01-14 18:06:37

我不能肯定地说,但看起来 ffi 是罪魁祸首。尝试将其升级到最新版本(我认为是1.0.11)?

I can't say for sure, but it looks like ffi is to blame. Try upgrading it to the last version (1.0.11 I think) ?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文