How can I make rake assets:precompile build to the right location?
Posted
by
Micah Gideon Modell
on Stack Overflow
See other posts from Stack Overflow
or by Micah Gideon Modell
Published on 2012-11-13T04:58:15Z
Indexed on
2012/11/13
4:59 UTC
Read the original article
Hit count: 323
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.
© Stack Overflow or respective owner