[Locomotive-users] Issue with ENV['HOME']
Olly
list at lylo.co.uk
Thu Apr 19 14:21:49 GMT 2007
[Locomotive 2.0.8, Rails Bundle 1.2.3]
When running my Rails app under Locomotive (development mode), the value of
ENV['HOME'] is wrapped in double quotes:
"/Users/Olly"
When I run the app from the command line (with Mongrel or WeBrick) the value
is:
/Users/Olly
Can anyone explain why, when running under Locomotive, the quotes are added
to the HOME environment variable?
This is causing a problem with ImageScience (because of ImageScience's
dependency on RubyInline) and the only workaround I have found is to add the
following to environment.rb:
ENV['HOME'] = ENV['HOME'].gsub(/^"/, '').gsub(/"$/, '')
Help appreciated! Pls can you cc: all replies to this email address?
Many thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070419/9bd38562/attachment.htm
More information about the Locomotive-users
mailing list