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
e771eefd » gdagley 2008-10-09 first commit 1 require 'vendor/rack-0.4.0/lib/rack.rb'
2 require 'vendor/sinatra-0.3.1/lib/sinatra.rb'
3 require 'config.rb'
4
5 deploy = configatron.deploy
6
7 Sinatra::Application.default_options.merge!(
8 :root => deploy.path,
9 :views => deploy.path + '/views',
10 :public => deploy.path + '/public',
11 :run => false,
5cf82a61 » gdagley 2008-10-09 fix logging 12 :env => :production,
13 :raise_errors => true
e771eefd » gdagley 2008-10-09 first commit 14 )
15
5cf82a61 » gdagley 2008-10-09 fix logging 16 log = File.new("sinatra.log", "a")
e771eefd » gdagley 2008-10-09 first commit 17 STDOUT.reopen(log)
18 STDERR.reopen(log)
19
20 require 'panera.rb'
21 run Sinatra.application