ruby on rails - Running unicorn as a service on centos to work with capistrano -
i trying use capistrano 3 deployment, using nginx-unicorn on centos 6.5. able run cap production deploy, , ssh server , restart manually.
i tried include gem - https://github.com/kalys/capistrano-nginx-unicorn - automate restarting of unicorn , nginx, fails when attempting restart unicorn service, running command
/usr/bin/env sudo service unicorn_app_name_production stop *service not exist*
i checked services when unicorn running manually , not in there, start command
unicorn_rails -c config/unicorn.rb -e production -d
i setup server using tutorial - https://www.digitalocean.com/community/tutorials/how-to-deploy-rails-apps-using-unicorn-and-nginx-on-centos-6-5
any help?
you can check this issue on similar gem (capistrano-unicorn-nginx improved fork of kalys/capistrano-nginx-unicorn). disclaimer: maintain gem.
the core issue both gems tested work on ubuntu (not on centos) using ubuntu specifics (directories etc).
i'd suggest forking gem you're using , manually tweaking tasks needs. example, you'll need change this task uses commands work on centos.
if manage make work, i'd appreciate leave feedback in this issue me work on solution both ubuntu, centos , other distros eventually.
Comments
Post a Comment