Fixed rails app init to work with unicorn restarts