Skip to content

Instantly share code, notes, and snippets.

@shaundon
Created December 6, 2013 09:37
Show Gist options
  • Save shaundon/7821063 to your computer and use it in GitHub Desktop.
Save shaundon/7821063 to your computer and use it in GitHub Desktop.
A very simple Sinatra server. Used for serving pages locally. I mainly use this for hosting functional mockups on my system.
require 'sinatra'
set :port, 4567
set :public_folder, File.dirname(__FILE__) + '/'
get '/' do
File.read('index.html')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment