use rails_env variable if set, stage if not set