ruby on rails - capistrano error: ...../current: No such file or directory -


i'm trying deploy using capistrano when cap deploy:update it's not creating /current folder, here's error, ideas?

executing "cd /home/adamtodd/apps/homebase/current && bundle exec rake rails_env=production rails_groups=assets assets:precompile --trace" servers: ["xx.xxx.xx.xxx"] [xx.xxx.xx.xxx] executing command  ** [out :: xx.xxx.xx.xxx] bash: line 0: cd: /home/adamtodd/apps/homebase/current: no such file or directory 

i had same problem when used ben curtis solution assets precompilation (assets:precompile task redifinition) on first-time deploy (deploy:cold didn't me)

simple workaround here

namespace :deploy   namespace :assets     task :precompile, :roles => :web, :except => { :no_release => true }       begin         = source.next_revision(current_revision) # <-- fail here @ first-time deploy because of current/revision absence       rescue         err_no = true       end       if err_no || 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 no asset changes"       end    end   end end 

Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -