summaryrefslogtreecommitdiff
path: root/web/config.ru
diff options
context:
space:
mode:
Diffstat (limited to 'web/config.ru')
-rw-r--r--web/config.ru16
1 files changed, 16 insertions, 0 deletions
diff --git a/web/config.ru b/web/config.ru
new file mode 100644
index 0000000..b3ff0f9
--- /dev/null
+++ b/web/config.ru
@@ -0,0 +1,16 @@
+#
+# For use with Phusion Passenger
+#
+
+require 'sinatra'
+require './taginfo.rb'
+
+set :run, false
+set :environment, :production
+
+log = File.new("/osm/taginfo/log/taginfo.log", "a+")
+$stdout.reopen(log)
+$stderr.reopen(log)
+
+run Taginfo
+