Unicorn workers timeout Unicorn workers timeout nginx nginx

Unicorn workers timeout


Do you have your assets precompiled ? are you in production ? If not when you start your server and get your first request, rails will try to compile your assets which can take more than 15 seconds and reach the unicorn timeout.

In your start.sh you should have somewhere

export RAILS_ENVIRONEMENT=production

And during you deployment you should have :

rake assets:precompile