Micah Gideon Modell
Micah Gideon Modell

Reputation: 629

Rails assets path incorrect in a scoped production application

I've got an app that I'm trying to deploy to a subdirectory in production. Therefore, I have added a scope block that reads:

scope "/sapa" do

This works fine for the main code, but for some reason all assets (as rendered by the assets pipeline) begin with /assets instead of /sapa/assets (i.e. `

Does anyone know why this is happening or how I can fix it? Thanks!

Upvotes: 1

Views: 559

Answers (1)

davidrac
davidrac

Reputation: 10738

The asset pipeline doesn't care about the routes. Here's how to change the assets path:

config.assets.prefix = "/some_other_path"

Upvotes: 1

Related Questions