RailsCasts Pro episodes are now free!

Learn more or hide this

Michael Dausmann's Profile

GitHub User: mdausmann

Site: www.michaeldausmann.com

Comments by Michael Dausmann

Avatar

This stumped me as well and caused me to burn several days. In the end it was a simple restart of unicorn that fixed it

/etc/init.d/unicorn_my_app stop
/etc/init.d/unicorn_my_app start

Which i got from this ref

http://stackoverflow.com/questions/10756626/initializer-or-gem-not-loaded-with-unicorn-causing-500-internal-server-error

on the up side, while I was tearing out my hair and trawling the internet for knowledgez, I learned more about bundler and gemfile.lock and cap deploy:rollback and rails console (bundle exec rails console -e production
)

so all around not a loss.

Avatar

I had the same issue. I found that I needed to do the # ssh setup steps before I attempted cap deploy:setup. In the video, the ssh is done after and appears to be convenience only but in the show notes its before.

Avatar

I did try that but it didn't work and I found it difficult to figure out what was going wrong.. killed the droplet and started from scratch with an empty ubuntu image.