added require_relative './config/environments' to app.rb file