2012-07-03 39 views
0

我試圖將我的第一個rails應用程序部署到我的mediatemple(dv)VPS服務器。我使用乘客,我已經安裝了,在我的服務器上創建了一個項目,將文件從本地項目複製到我的服務器,創建了數據庫並運行了rake db:migrate和rake db:seed。試圖部署我的第一個rails應用程序

當我ping我的網址,我得到一個內部服務器錯誤。

這是我的日誌文件的一個片段。獲得我的第一個Rails應用程序的任何幫助表示讚賞。

*** Exception PhusionPassenger::InvalidPath in spawn manager (No such file or directory - /var/www/vhost) (process 13560, thread #<Thread:0x000000103890e0>): 
    from /usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11/lib/phusion_passenger/utils.rb:60:in `rescue in canonicalize_path' 
    from /usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11/lib/phusion_passenger/utils.rb:57:in `canonicalize_path' 
    from /usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11/lib/phusion_passenger/classic_rails/application_spawner.rb:120:in `initialize' 
    from /usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb:201:in `new' 
    from /usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb:201:in `block in spawn_rails_application' 
    from /usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb:215:in `call' 
    from /usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb:215:in `block (2 levels) in spawn_rails_application' 
    from /usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add' 
    from /usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb:214:in `block in spawn_rails_application' 
    from /usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize' 
    from <internal:prelude>:10:in `synchronize' 
    from /usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' 
    from /usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application' 
    from /usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application' 
    from /usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application' 
    from /usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' 
    from /usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' 
    from /usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11/helper-scripts/passenger-spawn-server:99:in `<main>' 
[ pid=13495 thr=47652788213792 file=ext/apache2/Hooks.cpp:860 time=2012-07-03 10:11:46.536 ]: Unexpected error in mod_passenger: Cannot spawn application '/var/www/vhost/tomstestsite.us/PersonalTrainingKT': The spawn server has exited unexpectedly. 
    Backtrace: 
    in 'virtual Passenger::SessionPtr Passenger::ApplicationPool::Client::get(const Passenger::PoolOptions&)' (Client.h:742) 
    in 'Passenger::SessionPtr Hooks::getSession(const Passenger::PoolOptions&)' (Hooks.cpp:292) 
    in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:561) 
+0

「沒有這樣的文件或目錄 -/var/www/vhost」看起來像你缺少一些東西... – phoet

+0

啊很好。它應該是'/ var/www/vhosts'。請張貼這個答案,以便我可以接受它。 – Catfish

回答

2
(No such file or directory - /var/www/vhost) (process 13560, thread #<Thread:0x000000103890e0>): 

是表明你配置錯誤的東西。

相關問題