Skip to content

Instantly share code, notes, and snippets.

@pmashchak
Created February 1, 2016 20:16
Show Gist options
  • Save pmashchak/de07beb06f5ed11e3a41 to your computer and use it in GitHub Desktop.
Save pmashchak/de07beb06f5ed11e3a41 to your computer and use it in GitHub Desktop.
# Place this file in /shingle directory name it shingle.rb
# run `gem install sinatra`
# run `ruby shingle/shingle.rb`
# open browser on http://localhost:4567
require 'rubygems'
require 'sinatra'
set :port, '4567'
set :static, true
set :public_folder, Proc.new { File.join(root, '../shingle') }
get "/" do
File.read('./shingle/index.html')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment