I'm having fun trying to get my raspberry pi setup as a staging server. It's a rails app 3.2.8 using devise for authentication.
When it's bundling the install is failing with
Installing bcrypt-ruby (3.0.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension
If I "sudo gem install bcrypt-ruby -v '3.0.1' " then it installs fine, but the capistrano deploy is always failing.
Any ideas? I'd rather not deploy as sudo as that's not how it works in production.