Use RAILS_ENV instead of stage.