Why do I keep getting this error:
* executing "cat /var/www/myproject/current/REVISION"
servers: ["foo.bar.com"]
[foo.bar.com] executing command
[err :: foo.bar.com] cat:
[err :: foo.bar.com] /var/www/myproject/current/REVISION
[err :: foo.bar.com] : No such file or directory
With this code:
namespace :assets do
task :precompile, :roles => :web, :except => { :no_release => true } do
from = source.next_revision(current_revision)
if capture("cd #{latest_release} && #{source.local.log(from)}
vendor/assets/ app/assets/ | wc -l").to_i > 0
run %Q{cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env}
#{asset_env} assets:precompile}
else
logger.info "Skipping asset pre-compilation because there were no asset
changes"
end
end
end
And current_release defined as:
_cset(:current_revision) { capture("cat #{current_path}/REVISION", :except => {
:no_release => true }).chomp }
I'm using git and Capistrano v2.12.0
--
* 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