Retaining RUBYLIB environment variable settings

I'm having problems running my rails app in RubyMine (4.0.3 30-day trial)

A couple of facts:

  • environment variable RUBYLIB contains D:\Development\Libs\Ice-3.3.0-VC60\ruby
  • I can start my mongrel_rails server from the command line or NetBeans without a glitch


The I start the rails server from RubyMine and the startup command shows as:


runnerw.exe C:\Ruby\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:/Ruby/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.16/bin/rdebug-ide --port 57405 -- D:/Development/APAL6-CVS-HEAD/APALUI/script/server -b 127.0.0.1 -p 3015 -e production

I set a break point and set a watch on ENV['RUBYLIB'] which shows C:/Ruby/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.5.jb2-x86-mswin32/lib;C:/Ruby/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.16/lib. As you can see, the original RUBYLIB setting has been replaced. Not surprisingly, the line require 'Ice' bombs.

How can I fix this?

Pete


Please sign in to leave a comment.