File: config.ru

package info (click to toggle)
ruby-rack-livereload 0.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 244 kB
  • sloc: javascript: 974; ruby: 477; makefile: 4
file content (17 lines) | stat: -rw-r--r-- 207 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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