rack-livereload/config.ru

18 lines
207 B
Plaintext
Raw Normal View History

2011-11-04 15:51:22 +00:00
require 'sinatra'
$: << 'lib'
require 'rack/livereload'
2011-11-17 20:44:48 +00:00
use Rack::Logger
2011-11-04 15:51:22 +00:00
use Rack::LiveReload
run Rack::Directory.new('.')
if false
2011-11-04 15:51:22 +00:00
get '/' do
2011-11-17 20:44:48 +00:00
File.read('index.html')
2011-11-04 15:51:22 +00:00
end
run Sinatra::Application
end