Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Test against subdirectory environment #32
Redmine may run in a subdirectory environment.
I sometimes write bugs that only occur in a subdirectory environment.
So I want to run my feature spec(or system test) against subdirectory environment.
diff --git a/config.ru b/config.ru index 5bc2a619e..e30b85ece 100644 --- a/config.ru +++ b/config.ru @@ -1,4 +1,7 @@ # This file is used by Rack-based servers to start the application. require ::File.expand_path('../config/environment', __FILE__) -run Rails.application + +map '/redmine' do + run Rails.application +end diff --git a/config/initializers/relative_url_root.rb b/config/initializers/relative_url_root.rb new file mode 100644 index 000000000..6438db43e --- /dev/null +++ b/config/initializers/relative_url_root.rb @@ -0,0 +1 @@ +Redmine::Utils::relative_url_root = "/redmine"