View Single Post
  #3  
Old 01-26-2009, 09:06 PM
russ816 russ816 is offline
New Member
 
Join Date: Oct 2008
Posts: 5
I work with Tim and these are some of the errors that I've been running into.

This is the config for the external app for the vhost that the context is hooked to:
Code:
Name		rails
Address	uds://tmp/lshttpd/lsruby.sock
Command	/opt/local/bin/ruby /opt/lsws/vhosts/rails/script/lsws.rb
This is the the contents of that file:
Code:
Dir.chdir(File.join(File.dirname(__FILE__), '..'))

require 'rubygems'
require 'lsapi'
require 'rack'

require 'config/environment'

Rack::Handler::LSWS.run(ActionController::Dispatcher.new)
When I request a page from the app I get the following error:
Code:
no such file to load -- /opt/local/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/handler/lsws.rb (MissingSourceFile)
Also, I'm not sure if this is related but I get an error when trying to load up the lsapi gem in irb:
Code:
irb(main):006:0> require 'lsapi'
LS=> true
LSD/opt/local/lib/ruby/1.8/irb/input-method.rb:97:in `readline'LS
: LS1wrong argument type LSAPI (expected File)LS
 (LSTypeErrorLS
)
LSG	from /opt/local/lib/ruby/1.8/irb/input-method.rb:97:in `gets'
LSA	from /opt/local/lib/ruby/1.8/irb.rb:132:in `eval_input'
LSD	from /opt/local/lib/ruby/1.8/irb.rb:263:in `signal_status'
LSA	from /opt/local/lib/ruby/1.8/irb.rb:131:in `eval_input'
LSD	from /opt/local/lib/ruby/1.8/irb/ruby-lex.rb:189:in `call'
LSI	from /opt/local/lib/ruby/1.8/irb/ruby-lex.rb:189:in `buf_input'
LSD	from /opt/local/lib/ruby/1.8/irb/ruby-lex.rb:104:in `getc'
LSD	from /opt/local/lib/ruby/1.8/irb/slex.rb:206:in `match_io'
LS@	from /opt/local/lib/ruby/1.8/irb/slex.rb:76:in `match'
LSE	from /opt/local/lib/ruby/1.8/irb/ruby-lex.rb:287:in `token'
LSC	from /opt/local/lib/ruby/1.8/irb/ruby-lex.rb:263:in `lex'
LSX	from /opt/local/lib/ruby/1.8/irb/ruby-lex.rb:234:in `each_top_level_statement'
LSD	from /opt/local/lib/ruby/1.8/irb/ruby-lex.rb:230:in `loop'
LSX	from /opt/local/lib/ruby/1.8/irb/ruby-lex.rb:230:in `each_top_level_statement'
LSE	from /opt/local/lib/ruby/1.8/irb/ruby-lex.rb:229:in `catch'
LSX	from /opt/local/lib/ruby/1.8/irb/ruby-lex.rb:229:in `each_top_level_statement'
LSA	from /opt/local/lib/ruby/1.8/irb.rb:146:in `eval_input'
LS;	from /opt/local/lib/ruby/1.8/irb.rb:70:in `start'
LS;	from /opt/local/lib/ruby/1.8/irb.rb:69:in `catch'
LS;	from /opt/local/lib/ruby/1.8/irb.rb:69:in `start'
LS$	from /opt/local/bin/irb:13
I've tried getting Rails 2.3 running with Rack on 3 different machine (CentOS, ArchLinux and Mac OSX), all with the same results.
Reply With Quote