Skip to content

Instantly share code, notes, and snippets.

@Georgy5
Created September 7, 2024 16:29
Show Gist options
  • Save Georgy5/97637860a930d270b28c5f5c658d4d5d to your computer and use it in GitHub Desktop.
Save Georgy5/97637860a930d270b28c5f5c658d4d5d to your computer and use it in GitHub Desktop.
Simple Ruby+Puma "hello world" web app
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