changeset 161:377750dcab80

Allows subdirectory install.
author Edho Arief <edho@myconan.net>
date Wed, 28 Nov 2012 09:49:08 -0800
parents 3f02431cb17d
children 368f071a47ae
files config.ru
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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