RailsCasts Pro episodes are now free!

Learn more or hide this

redgetan's Profile

GitHub User: redgetan

Comments by

Avatar

I had a similar problem, wherein my updated code is not being loaded by unicorn even after reload. Turns out that it's because I have my unicorn config file set preload_app to true, and sending a HUP signal, which unicorn_init.sh uses for reload and restart, would not make unicorn load the code changes (see HUP under http://unicorn.bogomips.org/SIGNALS.html). So I modified deploy.rb to use

%w[start stop reload upgrade].each do |command|

instead and use 'reload' for changes in unicorn.rb and 'upgrade' for rails code changes