Project

General

Profile

Actions

Defect #5012

closed

Redmine Fails to load stylesheets and Javascript when configured as suburi

Added by Rajeev B over 14 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-03-09
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

I have installed redmine-0.9.3 on Windows7 and I started it with webrick as follows:

ruby script/server webrick -e production

It starts fine and I am able to access it with the url

http://localhost:3000/

Now I want to configure redmine as a suburi and want to access it with url

http://localhost:3000/redmine

Following the instruction for suburi configuration I add the following line at the end of environment.rb

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

When I restart webrick and access it with the suburi http://localhost:3000/redmine
I get a lot of routing errors related to loading javascripts and stylesheets
You can find the attached production.log file.

Please help.

More Configuration details:
Windows7, Ruby 1.8.6, sqlite3, redmine-0.9.3

Gems Installed:
cgi_multipart_eof_fix (2.5.0)
fxri (0.3.6)
fxruby (1.6.16)
gem_plugin (0.2.3)
hpricot (0.6.164)
log4r (1.0.5)
mongrel (1.1.5)
mongrel_service (0.3.4)
ptools (1.1.6)
rack (1.0.1)
rake (0.8.7)
ruby-opengl (0.60.0)
sqlite3-ruby (1.2.5)
test-unit (2.0.1)
win32-api (1.2.1, 1.2.0)
win32-clipboard (0.4.4)
win32-dir (0.3.2)
win32-eventlog (0.5.0)
win32-file (0.5.5)
win32-file-stat (1.3.1)
win32-process (0.5.9)
win32-sapi (0.1.4)
win32-service (0.5.2)
win32-sound (0.4.1)
windows-api (0.2.4)
windows-pr (0.9.3)


Files

production.log (8.56 KB) production.log production.log with errors Rajeev B, 2010-03-09 10:12
Actions #1

Updated by Rajeev B over 14 years ago

  • Status changed from New to Resolved

The Issue got resolved by starting redmine like this:

ruby script/server webric -e production -P /redmine

instead of what I did earlier like this:

ruby script/server webrick -e production

Now Whats left for me is to see it running over Apache 2.2

Actions #2

Updated by Holger Just over 14 years ago

  • Status changed from Resolved to Closed
  • Priority changed from Urgent to Normal
  • Resolution set to Invalid
Actions #3

Updated by jibiel jibiel about 13 years ago

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

Actions

Also available in: Atom PDF