Close #115: Set RAILS_ENV and RACK_ENV on development, staging and production