Hello,
if I use an initializer under config/initializer/myfile.rb, it seems that when the code is called, ENV['RAILS_ENV'] is empty when I use LiteSpeed, whereas it has a value of development or production if I use ruby script/server.
Is it a known issue ?
My work-around has been to hard-code to production for the moment.
thanks,
-- Thibaut
if I use an initializer under config/initializer/myfile.rb, it seems that when the code is called, ENV['RAILS_ENV'] is empty when I use LiteSpeed, whereas it has a value of development or production if I use ruby script/server.
Is it a known issue ?
My work-around has been to hard-code to production for the moment.
thanks,
-- Thibaut