Set the rails env properly for jboss throught RACK_ENV.