Created
September 7, 2024 16:29
-
-
Save Georgy5/97637860a930d270b28c5f5c658d4d5d to your computer and use it in GitHub Desktop.
Simple Ruby+Puma "hello world" web app
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
require 'rack/handler/puma' | |
class PumaRackApp | |
def call(env | |
['200', {'Content-Type => 'text/html'}, ['Hello, World!']] | |
end | |
end | |
Rack::Handler::Puma.run(PumaRackApp.new, Post: 5000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment