blob: a926fe8c0c1325f9b6dcc2d612dbff7bc2f8c655 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#
# For use with Phusion Passenger
#
require 'sinatra'
require './taginfo.rb'
set :run, false
set :environment, :production
today = Time.now.strftime('%Y-%m-%d')
log = File.new("/osm/taginfo/var/log/taginfo-#{ today }.log", "a+")
$stdout.reopen(log)
$stderr.reopen(log)
$queries_log = File.new("/osm/taginfo/var/log/queries-#{ today }.log", "a+")
run Taginfo
|