Created
June 1, 2016 11:40
-
-
Save kml/267b9c984d5d613cb22c140191402910 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is used by Rack-based servers to start the application. | |
require ::File.expand_path('../config/environment', __FILE__) | |
app = Rack::Builder.new do | |
map "/ping" do | |
run lambda { |_env| [200, {'Content-Type' => 'text/plain'}, ['pong']] } | |
end | |
map "/" do | |
run Rails.application | |
end | |
end | |
run app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment