Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Thomas Uehlinger
RE: ruby path [ reply ]  
2010-08-04 10:35
I'm not a Rails specialist, but I think you should be able to achieve this by setting the environment variable RAILS_ENV=production before.

By: philippe kernevez
RE: ruby path [ reply ]  
2010-08-04 10:10
Hi Thomas,

I succeed in adding some path with this command :
$LOAD_PATH << 'myPath'

(I am a newbie in Ruby)

Do you solution allow to change the environement ? (ie "-E production")

We are using Daemons.run...


By: Thomas Uehlinger
RE: ruby path [ reply ]  
2010-08-03 15:06
Hi Philippe,

there is ways to add additional parameters to a script. See :script_argv. What daemonization mode are you using (:call, :run, :exec)?

By: philippe kernevez
ruby path [ reply ]  
2010-07-30 15:32
Hi,

I use Daemons for starting ruby programs as linux service.
My programme need to have a specific path (ie as 'ruby -Ilib:config:other myprogram.rb'.
Is it a way to add such path to the daemonize program ?

Thanks,
Philippe