Ruby on Rails应用程序无法启动

时间:2009-08-06 11:02:53

标签: ruby-on-rails passenger dreamhost

我在Dreamhost上将我的第一个Rails应用程序放在网上,但我一直无法启动“Ruby on Rails应用程序”(you can see it directly)。

然后运行rake exiftool进程似乎被DH杀死了:sh:第1行:10645被杀 转换“/ tmp / stream20090806-10125-x36lrj-0 [0]”-resize“x150”-crop “150x150 + 25 + 0”+ repage“/ tmp / stream20090806-10125-x36lrj-0,10125,0” 2 - ;的/ dev / null的

脚本/控制台正常工作,似乎安装了宝石。 Apache日志没有说什么(因为我对它们的访问权限有限)。

终端输出将解释一切胜过千言万语:


 Welcome to castiglia.dreamhost.com

[castiglia]$ cd ~/foto-fiori.com
[castiglia]$ rake
(in /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" 
Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader
Started
.....
Finished in 0.130391 seconds.

5 tests, 5 assertions, 0 failures, 0 errors
/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" 
Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader
Started
....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......
Finished in 18.62476 seconds.

  1) Failure:
test_should_create_photo(PhotosControllerTest) [/test/functional/photos_controller_test.rb:21]:
"Photo.count" didn't change by 1.
 expected but was
.

11 tests, 13 assertions, 1 failures, 0 errors
/usr/bin/ruby1.8 -Ilib:test "/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader.rb"  
Errors running test:functionals!
[castiglia]$ script/console production
Loading production environment (Rails 2.3.3)
>> User.count
=> 7
>> exit
[castiglia]$ rake gems:install
(in /mnt/local/home/collimarco/foto-fiori.com)
[castiglia]$ rake gems
(in /mnt/local/home/collimarco/foto-fiori.com)
 - [I] mysql 
 - [I] mini_exiftool 

I = Installed
F = Frozen
R = Framework (loaded before rails starts)

1 个答案:

答案 0 :(得分:0)

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

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