for rails 4+, you need to include gem 'rails_12factor' in your gemfile
修改:         Gemfile.lock
#config/routes.rb
root to: application#index

#app/controllers/application_controller.rb
Class ApplicationController < ActionController::Base
    def index
    end
end