我正在尝试使用 capistrano 3 进行部署,在 centos 6.5 上使用 nginx-unicorn。我能够运行 cap production deploy,然后 ssh 进入服务器并手动重新启动它。
我尝试包含 gem - https://github.com/kalys/capistrano-nginx-unicorn - 以自动重新启动 unicorn 和 nginx,但在尝试将 unicorn 作为服务重新启动时失败,运行此命令
/usr/bin/env sudo service unicorn_app_name_production stop
*service does not exist*
我在 unicorn 手动运行时检查了服务并且它不在其中,我通常使用此命令启动它
unicorn_rails -c config/unicorn.rb -E production -D
我使用本教程设置服务器 - https://www.digitalocean.com/community/tutorials/how-to-deploy-rails-apps-using-unicorn-and-nginx-on-centos-6-5
有什么帮助吗?