public
Description: tiny webapp I can use to get around stupid Panera blocking tinyurl.com
Homepage:
Clone URL: git://github.com/gdagley/panera.git
panera / config.ru
100644 21 lines (17 sloc) 0.464 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'vendor/rack-0.4.0/lib/rack.rb'
require 'vendor/sinatra-0.3.1/lib/sinatra.rb'
require 'config.rb'
 
deploy = configatron.deploy
 
Sinatra::Application.default_options.merge!(
  :root => deploy.path,
  :views => deploy.path + '/views',
  :public => deploy.path + '/public',
  :run => false,
  :env => :production,
  :raise_errors => true
)
 
log = File.new("sinatra.log", "a")
STDOUT.reopen(log)
STDERR.reopen(log)
 
require 'panera.rb'
run Sinatra.application