# HG changeset patch # User Edho Arief # Date 1354124948 28800 # Node ID 377750dcab80e1477a362fc446b1d41eb5e6c7a1 # Parent 3f02431cb17d27071736c9e1e32dab40da402267 Allows subdirectory install. diff -r 3f02431cb17d -r 377750dcab80 config.ru --- 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