Project

General

Profile

RoutingError with redmine_git_hosting plugin installed in sub-uri

Added by Brad Neuman about 13 years ago

I am pretty new to ruby on rails and redmine, so please forgive me if this is obvious, I couldn't find the solution here or on google.

I am using the redmine_git_hosting plugin to manage git repos with gitolite. Most things work, but I cannot see the checkout URLs on the overview or repository pages. I am posting this here because I think this is due to something wrong with my config rather than a bug in the plugin, but I'm not sure.

This is a fresh install on Ubuntu 10.04, I followed the first section here:
http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_Ubuntu
for installing with Passenger.

I also added

Redmine::Utils::relative_url_root = "/redmine"

to config/environment.rb, as suggested here:
http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_a_sub-URI

When I view a page which is supposed to show the checkout url, the box is empty and I get the following errors in my production log: (I cut out the traceback and my ip)

@Processing ApplicationController#index (for <MY IP> at 2011-10-18 13:57:30) [GET]

ActionController::RoutingError (No route matches "/plugin_assets/redmine_git_hosting/stylesheets/git_url_display.css" with {:method=\

:get}):

Rendering /usr/share/redmine/public/404.html (404 Not Found)

Processing ApplicationController#index (for <MY IP> at 2011-10-18 13:57:31) [GET]

ActionController::RoutingError (No route matches "/plugin_assets/redmine_git_hosting/javascripts/git_url_display.js" with {:method=>\
:get}):

Rendering /usr/share/redmine/public/404.html (404 Not Found)

Processing ApplicationController#index (for <MY IP> at 2011-10-18 13:57:31) [GET]

ActionController::RoutingError (No route matches "/plugin_assets/redmine_git_hosting/stylesheets/zero_clipboard.css" with {:method=>\
:get}):

Rendering /usr/share/redmine/public/404.html (404 Not Found)

Processing ApplicationController#index (for <MY IP> at 2011-10-18 13:57:31) [GET]

ActionController::RoutingError (No route matches "/plugin_assets/redmine_git_hosting/javascripts/ZeroClipboard.js" with {:method=>:g\
et}):

Rendering /usr/share/redmine/public/404.html (404 Not Found)

Processing ApplicationController#index (for <MY IP> at 2011-10-18 13:57:31) [GET]

ActionController::RoutingError (No route matches "/plugin_assets/redmine_git_hosting/javascripts/zero_clipboard_setup.js" with {:met\
hod=>:get}):

Rendering /usr/share/redmine/public/404.html (404 Not Found)

Processing ApplicationController#index (for <MY IP> at 2011-10-18 13:57:31) [GET]

ActionController::RoutingError (No route matches "/plugin_assets/redmine_git_hosting/images/paste.png" with {:method=>:get}):

Rendering /usr/share/redmine/public/404.html (404 Not Found)
@

I am using:

apache 2.2.14
rails 2.3.14
ruby 1.8.7
redmine 1.2.1.stable

I have this section in my apache site config:


<Directory "/var/www/redmine">
Options Indexes FollowSymLinks MultiViews
RailsBaseURI /redmine
PassengerResolveSymlinksInDocumentRoot on
</Directory>

Thanks in advance for your help!