I recently added a turbocharged nut https://github.com/ndbroadbent/turbo-sprockets-rails3 for my rails application, I use capistrano to deploy on Amazon EC2.
I am a little confused about how I can do this job. assets: precompile worked on my local machine, but did not do this on the amazon instance.
The short brief capistrano instruction creates a new release directory for each deployment, and the public / assets directory is empty, so every time it creates a new one and when the assets are launched: precompilation, it will precompile all assets.
Should I precompile localy and add them to git or copy the public / assets directory from the last deployment before capistrano starts the assets: precompile?
What will be the cleanest / best solution?
/ Change Or, perhaps, save the compiled assets in a shared directory?
lesce source share