2

我将我的第一个 Rails 应用程序放在 Dreamhost 上,但我不断收到“Ruby on Rails 应用程序无法启动”(您可以直接看到)。

然后运行 ​​rake exiftool 进程似乎被 DH 杀死: sh: line 1: 10645 Killed convert "/tmp/stream20090806-10125-x36lrj-0[0]" -resize "x150" -crop "150x150+25+0" + repage "/tmp/stream20090806-10125-x36lrj-0,10125,0" 2>/dev/null

script/console 工作正常,gems 似乎已安装。Apache 日志什么也没说(因为我对它们的访问权限有限)。

终端输出将比一千个单词更好地解释一切:

 欢迎来到 castiglia.dreamhost.com

[castiglia]$ cd ~/foto-fiori.com
[castiglia]$ 耙子
(在 /mnt/local/home/collimarco/foto-fiori.com)
/usr/bin/ruby1.8 -Ilib:test "/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader.rb" "test/unit/user_test.rb" " test/unit/comment_test.rb" "test/unit/helpers/password_resets_helper_test.rb" "test/unit/helpers/classifications_helper_test.rb" "test/unit/helpers/comments_helper_test.rb" "test/unit/helpers/photos_helper_test. rb" "test/unit/helpers/info_helper_test.rb" "test/unit/classification_test.rb" "test/unit/photo_test.rb" "test/unit/notifier_test.rb"
加载套件 /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader
开始
......
在 0.130391 秒内完成。

5 次测试,5 次断言,0 次失败,0 次错误
/usr/bin/ruby1.8 -Ilib:test "/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader.rb" "test/functional/comments_controller_test.rb" " test/functional/classifications_controller_test.rb" "test/functional/photos_controller_test.rb" "test/functional/info_controller_test.rb" "test/functional/password_resets_controller_test.rb"
加载套件 /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader
开始
....sh: line 1: 10645 Killed convert "/tmp/stream20090806-10125-x36lrj-0[0]" -resize "x150" -crop "150x150+25+0" +repage "/tmp/stream20090806-10125 -x36lrj-0,10125,0" 2>/dev/null
F......
在 18.62476 秒内完成。

  1) 失败:
test_should_create_photo(PhotosControllerTest) [/test/functional/photos_controller_test.rb:21]:
“Photo.count”没有改变 1。
 预期但
.

11 次测试,13 次断言,1 次失败,0 次错误
/usr/bin/ruby1.8 -Ilib:test "/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader.rb"  
运行测试时出错:功能!
[castiglia]$ 脚本/控制台制作
加载生产环境(Rails 2.3.3)
>> 用户数
=> 7
>> 退出
[castiglia]$ rake gems:install
(在 /mnt/local/home/collimarco/foto-fiori.com)
[castiglia]$ 耙子宝石
(在 /mnt/local/home/collimarco/foto-fiori.com)
 - [我] mysql
 - [I] mini_exiftool

I = 已安装
F = 冷冻
R = 框架(在 rails 启动之前加载)
4

1 回答 1

0

您是否在 Dreamhost 服务器上安装了所有正确版本的 Gem?我的 Rails 2.3 应用程序也出现了类似的错误,因为 Dreamhost 只安装了 Rails 2.2。

通过在我的应用程序中将 Rails 冻结到 2.3 解决了这些问题。

于 2009-08-06T14:17:00.533 回答