I have done more digging and it's not a capistrano problem, it's a
rails problem For some reason the thing that takes a few seconds on my
machine takes more than a half an hour on the server. I have seen the
following recipes on the web which don't work with the current version
of capistrano
task :precompile do
run_locally ("rake assets:clean && rake assets:precompile")
upload( "public/assets", "#{release_path}/public/assets", :via
=> :scp, :recursive => true)
end
This fails because it wants a FILES env variable.
%x{bundle exec rake assets:precompile}
%x{rsync --recursive --times --rsh=ssh --compress --human-
readable --progress public/assets #{user}@#{host}:#{shared_path}}
%x{bundle exec rake assets:clean}
this fails because it doesn't know what host is.
I like the rysnc idea. Can that be made to work. Is there a way to
specify "the current host you are deploying to"?
--
* You received this message because you are subscribed to the Google Groups
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/capistrano?hl=en