I am trying to use capistrano 3 for my deployment, using nginx-unicorn on centos 6.5. I was able to run cap production deploy, and then ssh into the server and restart it manually.
I tried to include the gem - https://github.com/kalys/capistrano-nginx-unicorn - to automate restarting of unicorn and nginx, but it fails when attempting to restart unicorn as a service, running this command
/usr/bin/env sudo service unicorn_app_name_production stop
*service does not exist*
I checked the services when unicorn is running manually and it is not in there, I generally start it with this command
unicorn_rails -c config/unicorn.rb -E production -D
I setup the server using this tutorial - https://www.digitalocean.com/community/tutorials/how-to-deploy-rails-apps-using-unicorn-and-nginx-on-centos-6-5
Any help?