Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Philipp Spieß's Profile

GitHub User: philipp-spiess

Site: myxcode.at

Comments by Philipp Spieß

Avatar

Edit: Executing the command on the server without Capistrano seems to work. :/

Avatar

Great screencast :)

But I ran into a problem when Capistrano tries to build my assets. I have no idea what's going on, if I start rails locally, everything works fine!

log
  * executing `deploy:assets:precompile'
  * executing "cd /home/deployer/apps/app/releases/20120331112826 && bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile"
    servers: ["example.com"]
    [example.com] executing command
    [example.com] sh -c 'cd /home/deployer/apps/app/releases/20120331112826 && bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile'
 ** [out :: example.com] rake aborted!
 ** [out :: example.com]
 ** [out :: example.com] cannot load such file -- bcrypt
 ** [out :: example.com]
 ** [out :: example.com]
 ** [out :: example.com] (See full trace by running task with --trace)
 ** [out :: example.com]
    command finished in 5227ms
*** [deploy:update_code] rolling back

But in my Gemfile I have bccrypt-ruby set up.

Gemfile
gem 'bcrypt-ruby', :require => "bcrypt"