Created
October 13, 2018 23:52
-
-
Save lfv89/aea36781318414f9a0555c9effd490b7 to your computer and use it in GitHub Desktop.
hello world with mongrel on rack
This file contains 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
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'rack', '1.6.10' | |
gem 'mongrel', '1.2.0.pre2' | |
end | |
class MongrelRackApp | |
def call(env) | |
['200', {'Content-Type' => 'text/html'}, ['Hello, World!']] | |
end | |
end | |
Rack::Handler::Mongrel.run(MongrelRackApp.new, Port: 3000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment