summaryrefslogtreecommitdiff
path: root/web/config.ru
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-01-20 17:21:11 +0100
committerJochen Topf <jochen@topf.org>2013-01-20 17:21:11 +0100
commit767b56220b1d3696415210c4f243d852bbb2402a (patch)
tree7221fac514456a3acb60a29594275a48c2ac6529 /web/config.ru
parentb862891651b130b084c7382b5c548d8c2d7d44a8 (diff)
downloadtaginfo-767b56220b1d3696415210c4f243d852bbb2402a.tar
taginfo-767b56220b1d3696415210c4f243d852bbb2402a.tar.gz
Add config file for apache2 passenger
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
+