2012-09-27 61 views
0

我已經解決了部署簡單的rails應用程序時遇到的很多問題,並認爲當我看到rails歡迎屏幕時所有的都很好......然後當我看到很多錯誤選擇了默認rails頁面的「關於你的應用程序環境」鏈接。錯誤在下面,當我轉到特定的URL時也會出現。rails bluehost錯誤Ruby(機架)應用程序無法啓動

我認爲這個問題是我的〜/ .bashrc文件明確呼籲

export GEM_PATH=$GEM_HOME:/usr/lib64/ruby/gems/1.8 

當錯誤引用寶石/ 1.9.3

我只是不知道這是問題或如何改變這些東西,使它們都認同彼此。用1.9.3代替1.8並沒有做到這一點(儘管我無法弄清楚我可能需要運行哪些軟件包或更新命令才能完成這項工作)。

我會很感激的任何方向,或者你可以提供建議......我「米新的與BlueHost的軌道部署,我相信我在這裏缺少的東西..

感謝。

錯誤消息: 找不到I18N-0.6.1中任何來源(捆紮機:: GemNotFound) 異常類: PhusionPassenger ::不明錯誤

後跟:

Backtrace: 
# File Line Location 
0 /usr/lib64/ruby/gems/1.9.3/gems/bundler-1.0.21/lib/bundler/spec_set.rb 88 in `block in materialize' 
1 /usr/lib64/ruby/gems/1.9.3/gems/bundler-1.0.21/lib/bundler/spec_set.rb 82 in `map!' 
2 /usr/lib64/ruby/gems/1.9.3/gems/bundler-1.0.21/lib/bundler/spec_set.rb 82 in `materialize' 
3 /usr/lib64/ruby/gems/1.9.3/gems/bundler-1.0.21/lib/bundler/definition.rb 90 in `specs' 
4 /usr/lib64/ruby/gems/1.9.3/gems/bundler-1.0.21/lib/bundler/definition.rb 135  in `specs_for' 
5 /usr/lib64/ruby/gems/1.9.3/gems/bundler-1.0.21/lib/bundler/definition.rb 124  in `requested_specs' 
6 /usr/lib64/ruby/gems/1.9.3/gems/bundler-1.0.21/lib/bundler/environment.rb 23 in `requested_specs' 
7 /usr/lib64/ruby/gems/1.9.3/gems/bundler-1.0.21/lib/bundler/runtime.rb 11 in `setup' 
8 /usr/lib64/ruby/gems/1.9.3/gems/bundler-1.0.21/lib/bundler.rb 110  in `setup' 
9 /etc/httpd/modules/passenger/lib/phusion_passenger/utils.rb  326  in `prepare_app_process' 
10 /etc/httpd/modules/passenger/lib/phusion_passenger/rack/application_spawner.rb 156  in `block in initialize_server' 
11 /etc/httpd/modules/passenger/lib/phusion_passenger/utils.rb  572  in `report_app_init_status' 
12 /etc/httpd/modules/passenger/lib/phusion_passenger/rack/application_spawner.rb 154  in `initialize_server' 
13 /etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb 204  in `start_synchronously' 
14 /etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb 180  in `start' 
15 /etc/httpd/modules/passenger/lib/phusion_passenger/rack/application_spawner.rb 129  in `start' 
16 /etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb  253  in `block (2 levels) in spawn_rack_application' 
17 /etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server_collection.rb 132  in `lookup_or_add' 
18 /etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb  246  in `block in spawn_rack_application' 
19 /etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server_collection.rb 82 in `block in synchronize' 
20  prelude> 10:in `synchronize' 
21 /etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server_collection.rb 79 in `synchronize' 
22 /etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb  244  in `spawn_rack_application' 
23 /etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb  137  in `spawn_application' 
24 /etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb  275  in `handle_spawn_application' 
25 /etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb 357  in `server_main_loop' 
26 /etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb 206  in `start_synchronously' 
27 /etc/httpd/modules/passenger/helper-scripts/passenger-spawn-server 99 in `' 
+0

bluehost表示我們目前運行Ruby on Rails 2.3.11版。並且不安裝3.X ....似乎很奇怪...任何人在bluehost上運行3.X?任何想法如何使工作......謝謝! – twinturbotom

回答

0

See my answer here

請注意,安裝RVM時,您會看到它會自動修改.bash_profile以使用正確的路徑,這將在/home/<user>/.rvm/...而不是/user/lib64中。

編輯:沒關係我的答案。儘管可能使Rails 3.x與當前安裝的Ruby 1.8一起運行(請參閱this Stackoverflow question),但您將無法使用Bluehost Shared Hosting運行Ruby 1.9.x。您唯一的選擇(現在)是VPS主機。

原因是Passenger Phusion與安裝在/ usr/lib中的Ruby版本有關,如果沒有root訪問權限,則無法更改。儘管你可以在RVM上安裝任何版本的Ruby,但你不會讓Passenger與它交談,因此你的rails項目不會使用它的gem。

相關問題