Skip to content

Instantly share code, notes, and snippets.

@syahrasi
Forked from tuomasj/Gemfile
Created January 2, 2014 06:36
Show Gist options
  • Save syahrasi/8215733 to your computer and use it in GitHub Desktop.
Save syahrasi/8215733 to your computer and use it in GitHub Desktop.
Sinatra Setup w/ Rack-livereload and Guard
require "sinatra"
require 'rack-livereload'
use Rack::LiveReload, :host => "localhost"
PUBLIC_DIR = "public"
set :public_folder, PUBLIC_DIR
get '/' do
send_file File.join(PUBLIC_DIR, "index.html")
end
source "https://rubygems.org"
gem 'guard'
gem 'guard-livereload'
gem 'rack-livereload'
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
guard 'livereload' do
watch( /^public\/(.*)/ )
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment