Set RAILS_ENV and RAKE_ENV for staging environment