我真的一直在努力让我的网络服务器在我的计算机上运行。
我正在运行:ruby 1.9.3 rvm 1.14.2(稳定)gem 1.8.24
在带有 apache 和乘客的 ubuntu 服务器上。
我能够访问我的网页,但我不断收到此错误消息:
Ruby (Rack) 应用程序无法启动 应用程序需要的源文件丢失。
It is possible that you didn't upload your application files correctly. Please check whether all your application files are uploaded.
A required library may not installed. Please install all libraries that this application requires.
有关错误的更多信息可能已写入应用程序的日志文件。请检查它以便分析问题。
错误消息:无法加载此类文件 -- bundler/setup 异常类:LoadError 应用程序根目录:/srv/ftp/otto 回溯:# 文件行位置 0 /usr/share/ruby-rvm/rubies/ruby-1.9.3-p194 /lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb 36 在require'
1 /usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb 36 in
需要'2 /srv/ftp/otto/config/setup_load_paths.rb 15 在'
3 /usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb 36 in
需要'4 /usr/share/ruby-rvm/rubies/ruby -1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb 36 在require'
5 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/utils.rb 301 in
prepare_app_process' 6 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger- 3.0.13/lib/phusion_passenger/rack/application_spawner.rb 156 在block in initialize_server'
7 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/utils.rb 572 in
report_app_init_status' 8 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/rack /application_spawner.rb 154 在initialize_server'
9 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server.rb 204 in
start_synchronously' 10 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server.rb 180 在start'
11 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/rack/application_spawner.rb 129 in
开始' 12 /usr/share/ruby-rvm /gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb 253 在block (2 levels) in spawn_rack_application'
13 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server_collection.rb 132 in
lookup_or_add' 14 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/ gems/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb 246 在block in spawn_rack_application'
15 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server_collection.rb 82 in
块中同步'16前奏> 10:在synchronize'
17 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server_collection.rb 79 in
同步'18 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems /passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb 244 在spawn_rack_application'
19 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb 137 in
spawn_application' 20 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/ spawn_manager.rb 275 在handle_spawn_application'
21 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server.rb 357 in
server_main_loop' 22 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server.rb 206 在start_synchronously'
23 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/helper-scripts/passenger-spawn-server 99 in
'
我尝试过:重新安装 rvm 和 ruby 安装 bundler ...以及其他一些我不太了解的东西!