RailsCasts Pro episodes are now free!

Learn more or hide this

Amit Ambardekar's Profile

GitHub User: amitamb

Site: http://www.amitamb.com/

Comments by Amit Ambardekar


It deployed correctly the first time but after second deploy it stopped working. I was getting problems with nginx and unicorn.

The problem was related to permission for unicorn_blog service. In deploy.rb we are starting the app with normal permissions.

run "/etc/init.d/unicorn_#{application} #{command}"

After changing it to

sudo "/etc/init.d/unicorn_#{application} #{command}"

everything started to work.

I don't know why it is necessary. I followed all instructions correctly.