Problem of switching to edge rails

can’t boot with “/script/server” but works with “mongrel_rails start”.
why?

/path/to/myproject/$ ./script/server
=> Booting WEBrick...
/path/to/myproject/vendor/rails/activesupport/lib/active_support/dependencies.rb:477:in
`const_missing': uninitialized constant DRb::DRbConn::Mutex (NameError)
        from /opt/local/lib/ruby/1.8/drb/drb.rb:1149
        from
/path/to/myproject/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in
`require'
        from
/path/to/myproject/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in
`require'
        from
/path/to/myproject/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in
`new_constants_in'
        from
/path/to/myproject/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in
`require'
        from /opt/local/lib/ruby/1.8/drb.rb:1
        from
/path/to/myproject/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in
`require'
        from
/path/to/myproject/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in
`require'
         ... 27 levels...
        from
/path/to/myproject/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in
`require'
        from
/path/to/myproject/vendor/rails/railties/lib/commands/server.rb:39
        from ./script/server:3:in `require'
        from ./script/server:3

hi there wrote:

can’t boot with “/script/server” but works with “mongrel_rails start”.
why?

/path/to/myproject/$ ./script/server
=> Booting WEBrick…

It looks like ./script/server cannot require ‘mongrel’ and it’s falling
back to webrick.

Eli

On 8/17/07, Eli M. [email protected] wrote:

To be more precise, script/server do wonky things with Mongrel:

It partially inializes Rails, then bootup the Mongrel code and then
continue loading rails…

That’s not a nice thing to do :stuck_out_tongue:

I’ll suggest stay away from it… or create some alias for
mongrel_rails command :wink:
(mine is just ‘mongrel’)


Luis L.
Multimedia systems

Leaders are made, they are not born. They are made by hard effort,
which is the price which all of us must pay to achieve any goal that
is worthwhile.
Vince Lombardi