-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ru
32 lines (24 loc) · 915 Bytes
/
config.ru
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# To use with thin
# thin start -p PORT -R config.ru
require File.join(File.dirname(__FILE__), 'app.rb')
require "rubygems"
require 'rack'
use Rack::CommonLogger
# require 'rack/cache'
# use Rack::Cache,
# :verbose => true,
# :metastore => "file:#{File.expand_path(File.dirname(__FILE__) + '/meta')}",
# :entitystore => "file:#{File.expand_path(File.dirname(__FILE__) + '/entity')}"
use Rack::Static, :urls => %w(/stylesheets /javascripts /images),
:root => File.dirname(__FILE__) + "/public"
use Rack::Session::Cookie
use Rack::Reloader #or tmp/always_restart.txt to reload on each request with passenger
use Rack::ShowExceptions
# use Rack::Lint #doesn't work with rack
# use Rack::Auth::Basic do |username, password|
# username == 'admin' && password == 'secret'
# end
# log = File.new("sinatra.log", "a")
# STDOUT.reopen(log)
# STDERR.reopen(log)
run StimbleTunes