apache2 - Apache; Phusion Passenger 3 RackBaseURI works only in Production environment for Rails 3 -


i have few rails 3 applications run under own rails/rack baseuri.

under passenger 2 using railsbaseuri "mount" individual rails apps under single domain; worked normally. upgraded passenger 3.0.2 , when i'm running in development mode rails 3 apps want prepend , append baseuri, in development environment. under production, well.

for example:

app lives in /fsroot/otherdir/myapp target file lives in /fsroot/otherdir/myapp/public/path/to/asset.css

in vhost config: rackbaseuri /myapp

note:symlink in virtualhost documentroot named myapp , pointed /fsroot/otherdir/myapp/public

in view: stylesheet_link_tag '/path/to/asset.css'

will produce

no such file or directory - asset file not found @ '/fsroot/otherdir/myapp/public/myapp/path/to/asset.css'

note rackbaseuri shows here before , after public folder.

i tried copying development.rb environment file on production.rb , rebooting apache same thing. there apparently other directive being assumed in each of these environments have no idea be. tried using railsbaseuri , rackbaseuri both behaved identically.

rails 3 wizard guidance appreciated.

while i'm not sure, may help:

replace railsbaseuri rackbaseuri if you’re using rails 3 passenger 3

source: http://wiki.railsplayground.com/railsplayground/show/how+to+use+phusion+passenger


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -