This project is archived and is in readonly mode.
an RoutingError of prefix path
-
Michael Koziarski
Which version of mongrel do you have installed? The code appears to be correct in 1.1.5?
-
Michael Koziarski
- Milestone cleared.
- Assigned user set to Michael Koziarski
We may need to add a work around for this before 2.2 final. Or provide patches upstream as needed
-
richy zhang
I use mongrel (1.1.5). The routing error raises only when mongrel is start with the opinion --prefix /msp . Without the opinion, I don't find any problems.
Now I put ENV['RAILS_RELATIVE_URL_ROOT']="/msp" in the environment.rb as Hongli Lai suggested, and msp can be deployed to passenger.
-
Michael Koziarski
Hopefully this patch resolves it for you?
-
Michael Koziarski
I've applied this patch as of 8a53e25
You should be able to freeze to edge and it should all work, alternatively that patch should apply cleanly to your rc1 checkout.
-
Michael Koziarski
- State changed from new to committed
-
richy zhang
I find out that "ActionController::base.relative_url_root=relative_url_root" should be ::Base.
In the other hand, it works well with 'mongrel_rails start --prefix="/msp" ' , but it's broken with phusion passenger even if I provide ENV['RAILS_RELATIVE_URL_ROOT'].
