set rails_env variable