How can I make rake assets:precompile build to the right location?
- by Micah Gideon Modell
I'm deploying my Rails 3 app to a subdirectory of my hosting service and therefore I'm using both a scope statement in my routes.rb and a config.assets.prefix. However, this causes my rake assets:precompile to build into public//assets instead of just into assets (since my prefix simply accounts for the scope). I can copy the files to the right location and everything will work, but I'd love for someone to tell me a better way (one must exist, right?).
/config/application.rb
config.assets.prefix = "/sapa/assets"
/config/routes.rb
scope "sapa" do
…
end
Any help would be appreciated.