18 lines
207 B
Ruby
18 lines
207 B
Ruby
require 'sinatra'
|
|
$: << 'lib'
|
|
|
|
require 'rack/livereload'
|
|
|
|
use Rack::Logger
|
|
use Rack::LiveReload
|
|
run Rack::Directory.new('.')
|
|
|
|
if false
|
|
|
|
get '/' do
|
|
File.read('index.html')
|
|
end
|
|
|
|
run Sinatra::Application
|
|
end
|