Capistrano Rails Asset Precompile Error -


i have capistrano script deploying app amazon ec2 machine. failing when compiling assets:

* executing "cd -- /home/ec2-user/uc_social_server/releases/20130731161645 && rails_env=production rails_groups=assets rake assets:precompile"     servers: ["ec2-23-22-188-11.compute-1.amazonaws.com"]     [ec2-23-22-188-11.compute-1.amazonaws.com] executing command  ** [out :: ec2-23-22-188-11.compute-1.amazonaws.com] not find thread_safe-0.1.0 in of sources  ** [out :: ec2-23-22-188-11.compute-1.amazonaws.com]   ** [out :: ec2-23-22-188-11.compute-1.amazonaws.com] run `bundle install` install missing gems.  ** [out :: ec2-23-22-188-11.compute-1.amazonaws.com]      command finished in 591ms *** [deploy:update_code] rolling   * executing "rm -rf /home/ec2-user/uc_social_server/releases/20130731161645; true"     servers: ["ec2-23-22-188-11.compute-1.amazonaws.com"]     [ec2-23-22-188-11.compute-1.amazonaws.com] executing command     command finished in 201ms failed: "sh -c 'cd -- /home/ec2-user/uc_social_server/releases/20130731161645 && rails_env=production rails_groups=assets rake assets:precompile'" on ec2-23-22-188-11.compute-1.amazonaws.com 

adding following deploy.rb

require "bundler/capistrano" require "rvm/capistrano" before "deploy:assets:precompile", "bundle:install" 

and following capfile

load 'deploy/assets' 

and following gemfile

gem 'rvm-capistrano' 

resolved issue me. if not using rvm, maybe not need require rvm/capistrano or rvm-capistrano gem.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -