diff config.ru @ 161:377750dcab80

Allows subdirectory install.
author Edho Arief <edho@myconan.net>
date Wed, 28 Nov 2012 09:49:08 -0800
parents 4aa8194a1733
children d31fe32da7a0
line wrap: on
line diff
--- a/config.ru	Wed Nov 28 09:45:36 2012 -0800
+++ b/config.ru	Wed Nov 28 09:49:08 2012 -0800
@@ -1,4 +1,6 @@
 # This file is used by Rack-based servers to start the application.
 
 require ::File.expand_path('../config/environment',  __FILE__)
-run Zeropaste::Application
+map (ENV['RAILS_RELATIVE_URL_ROOT'] || '/') do
+  run Zeropaste::Application
+end