Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Amit Ambardekar's Profile

GitHub User: amitamb


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.