I am deploying Rails app using capistrano and locally compiling assets and copying them to server using rsync. This is what happens in precompile
desc 'Run the precompile task locally and rsync with shared'
task :precompile, :roles => :web, except: { no_release: true } do
run "rm -f #{shared_path}/assets/manifest*"
%x{RAILS_ENV=production bundle exec rake assets:precompile}
%x{rsync -rave "ssh -i #{ssh_options[:keys][0]}" public/assets #{user}@#{domain}:#{shared_path}}
%x{RAILS_ENV=production bundle exec rake assets:clean}
%x{rm -rf public/assets}
end
Assets appear fine on the server after the deploy is complete but the rails app doesn't show the latest assets files. It shows the files from the last manifest file. I removed old manifest files by running run "rm -f #{shared_path}/assets/manifest*" in capistrano but the rails app doesnt pick up the new manifest. What am I missing and how can I force it to use the latest manifest file after deploying.
assets:cleanon my server in hopes that there was some sort of cache. No luck! - steakchaser