Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/66.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql 如何解决;雷克流产了!未初始化常量{My App Name}";?_Mysql_Ruby On Rails_Ruby_Capistrano - Fatal编程技术网

Mysql 如何解决;雷克流产了!未初始化常量{My App Name}";?

Mysql 如何解决;雷克流产了!未初始化常量{My App Name}";?,mysql,ruby-on-rails,ruby,capistrano,Mysql,Ruby On Rails,Ruby,Capistrano,在“cap部署”过程中,我会收到以下错误消息: * 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] executin

在“cap部署”过程中,我会收到以下错误消息:

  * 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数据库。谢谢你的建议。

我不能肯定,但看来应该怪
ffi
。尝试将其升级到最新版本(我想是1.0.11)?

这些{}是变量还是实值?不,这些只是变量,它们代表我的用户名和应用程序名的任何可能名称。感谢您的快速响应。我将ffi更新为1.0.11,但遗憾的是错误不断。