如何解决“耙子中止!”的问题未初始化的常量{我的应用程序名称}”?
在“上限部署”期间,我最终收到以下错误消息:
* 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不能肯定地说,但看起来
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) ?