Thank you for all your help!!!
<rails 3 beta2+nginx report error "no such file to load -- rack">
I already used google to search this question when I send this message.
but I did not find method of solution.
==================================
System: Snow leopard 10.6.2
RVM->Ruby: ruby 1.9.2dev (2010-04-04 trunk 27215) [i386-darwin10.0.0]
gem: 1.3.6
Rails: Rails 3.0.0.beta2
database: PostgreSQL 8.4.3
==================================
and set database.yml and nginx.conf
database.yml
development:
adapter: postgresql
encoding: unicode
database: horn_development
pool: 5
username: shajun
password: admin123
==================================
nginx.conf
passenger_root
/Users/shajun/.rvm/gems/ruby-1.9.2-head/gems/passenger-2.2.11;
passenger_ruby /Users/shajun/.rvm/rubies/ruby-1.9.2-head/bin/ruby;
server {
listen 3001;
server_name horn.local;
root /Users/shajun/project/horn/public; # <--- be sure to
point to 'public'!
passenger_enabled on;
rack_env development;
}
==================================
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.0.beta2)
actionpack (3.0.0.beta2)
activemodel (3.0.0.beta2)
activerecord (3.0.0.beta2)
activeresource (3.0.0.beta2)
activesupport (3.0.0.beta2, 2.3.5)
arel (0.3.3)
builder (2.1.2)
bundler (0.9.14)
erubis (2.6.5)
fastthread (1.0.7)
i18n (0.3.6)
mail (2.1.5.3)
memcache-client (1.8.1)
mime-types (1.16)
passenger (2.2.11)
pg (0.9.0)
polyglot (0.3.1)
rack (1.1.0)
rack-mount (0.6.1)
rack-test (0.5.3)
rails (3.0.0.beta2)
railties (3.0.0.beta2)
rake (0.8.7)
text-format (1.0.0)
text-hyphen (1.0.0)
thor (0.13.4)
treetop (1.4.5)
tzinfo (0.3.18)
==================================
Error: (when input loclhost:3001 in borwser)
Ruby (Rack) application could not be started
A source file that the application requires, is missing.
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.
Further information about the error may have been written to the
application's log file. Please check it in order to analyse the problem.
Error message:
no such file to load -- rack
Exception class:
LoadError
Application root:
/Users/shajun/project/horn
Backtrace:
# File Line Location
0
/Users/shajun/.rvm/gems/ruby-1.9.2-head/gems/passenger-2.2.11/lib/phusion_passenger/rack/application_spawner.rb
143 in `require'
1
/Users/shajun/.rvm/gems/ruby-1.9.2-head/gems/passenger-2.2.11/lib/phusion_passenger/rack/application_spawner.rb
143 in `load_rack_app'
2
/Users/shajun/.rvm/gems/ruby-1.9.2-head/gems/passenger-2.2.11/lib/phusion_passenger/rack/application_spawner.rb
104 in `block in run'
3
/Users/shajun/.rvm/gems/ruby-1.9.2-head/gems/passenger-2.2.11/lib/phusion_passenger/utils.rb
255 in `report_app_init_status'
4
/Users/shajun/.rvm/gems/ruby-1.9.2-head/gems/passenger-2.2.11/lib/phusion_passenger/rack/application_spawner.rb
87 in `run'
5
/Users/shajun/.rvm/gems/ruby-1.9.2-head/gems/passenger-2.2.11/lib/phusion_passenger/rack/application_spawner.rb
65 in `block in spawn_application'
6
/Users/shajun/.rvm/gems/ruby-1.9.2-head/gems/passenger-2.2.11/lib/phusion_passenger/utils.rb
184 in `safe_fork'
7
/Users/shajun/.rvm/gems/ruby-1.9.2-head/gems/passenger-2.2.11/lib/phusion_passenger/rack/application_spawner.rb
58 in `spawn_application'
8
/Users/shajun/.rvm/gems/ruby-1.9.2-head/gems/passenger-2.2.11/lib/phusion_passenger/rack/application_spawner.rb
41 in `spawn_application'
9
/Users/shajun/.rvm/gems/ruby-1.9.2-head/gems/passenger-2.2.11/lib/phusion_passenger/spawn_manager.rb
159 in `spawn_application'
10
/Users/shajun/.rvm/gems/ruby-1.9.2-head/gems/passenger-2.2.11/lib/phusion_passenger/spawn_manager.rb
287 in `handle_spawn_application'
11
/Users/shajun/.rvm/gems/ruby-1.9.2-head/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server.rb
352 in `main_loop'
12
/Users/shajun/.rvm/gems/ruby-1.9.2-head/gems/passenger-2.2.11/lib/phusion_passenger/abstract_server.rb
196 in `start_synchronously'
13
/Users/shajun/.rvm/gems/ruby-1.9.2-head/gems/passenger-2.2.11/bin/passenger-spawn-server
61 in `'
==================================
but when I run "rails server" in application
sha-juns-Mac-Pro:horn shajun$ rails server
=> Booting WEBrick
=> Rails 3.0.0.beta2 application starting in development on
http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2010-04-04 23:09:20] INFO WEBrick 1.3.1
[2010-04-04 23:09:20] INFO ruby 1.9.2 (2010-04-04) [i386-darwin10.0.0]
[2010-04-04 23:09:20] INFO WEBrick::HTTPServer#start: pid=1044
port=3000
I would really appreciate your help !!!
jun sha
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.