Permalink
Browse files

Allows deployment in subdirectory. More or less.

'less' since many areas still use absolute path.
  • Loading branch information...
1 parent 2441fa7 commit 7d7dc53a2cbca076f0852b57c96fddd02f857138 @nanaya committed Jul 8, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 config.ru
View
@@ -5,4 +5,6 @@ if defined? Unicorn
end
require ::File.expand_path('../config/environment', __FILE__)
-run Moebooru::Application
+map (ENV['RAILS_RELATIVE_URL_ROOT'] || '/') do
+ run Moebooru::Application
+end

0 comments on commit 7d7dc53

Please sign in to comment.