2009-08-06 72 views
2

我把我的第一個Rails應用程序在Dreamhost上在線,但我一直在收到「Ruby on Rails應用程序無法啓動」(you can see it directly)。Ruby on Rails應用程序無法啓動

然後運行耙exiftool過程似乎是由DH被殺死:SH:第1行:10645殺死 轉換 「/ TMP/stream20090806-10125-x36lrj-0 [0]」 調整大小 「X150」 -crop 「150×150 + 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) 

回答

0

你有你所有的寶石的正確版本Dreamhost的服務器上安裝?我的Rails 2.3應用程序有類似的錯誤,因爲Dreamhost只安裝了Rails 2.2。

通過在我的應用程序中將Rails凍結到2.3解決了這些問題。