HowTo use sub-URI not working
Added by Lars Fischer over 15 years ago
Hello,
I would like to use a sub-URI as described in the wiki (HowTo_Install_Redmine_in_a_sub-URI).
Therefore I added the shown line
ActionController::AbstractRequest.relative_url_root = "/redmine"
at the end of the file "config/environment.rb"
Accessing now the resulting url with :3000/redmine schows the page without any css or javascript. The console shows always 404 errors for accesses like this " /redmine/stylesheets/application.css"
Now I copied all files from "redmine/public" to "redmine/redmine/public" and the page is working well, but I don't think that this will be a good solution?
Where is my mistake?
regards,
Lars
Replies (3)
RE: HowTo use sub-URI not working - Added by Lars Fischer over 15 years ago
PS:
RAILS_ENV=production script/about
returns
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- rails/info (MissingSourceFile)
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /opt/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require'
from /opt/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
from /opt/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require'
from /opt/redmine/vendor/rails/railties/lib/commands/about.rb:2
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
from script/about:3
RE: HowTo use sub-URI not working - Added by J.N. Tang over 15 years ago
me too.
It seams that all files "/redmine/public/..." convert to "/redmine/...".
So there are a lot of file missing.
How to solve it?
RE: HowTo use sub-URI not working - Added by jibiel jibiel about 13 years ago
webrick solution — [[http://www.redmine.org/issues/5012]]
For those who bumping into this issue with passenger — just create symlink to public directory inside directory itself:ln -s /path/to/app/public/ /path/to/app/public/redmine