Skip to content

Instantly share code, notes, and snippets.

@lfv89
Last active October 14, 2018 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lfv89/fcb40c674fe013015dc5dd10f75b311a to your computer and use it in GitHub Desktop.
Save lfv89/fcb40c674fe013015dc5dd10f75b311a to your computer and use it in GitHub Desktop.
hello world with thin
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'thin'
end
# literally a rack app
app = ->(env) { ['200', {'Content-Type' => 'text/html'}, ['Hello, World!']] }
Thin::Server.new('localhost', 3000, app, {}).start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment