正确地重新启动Capistrano部署文件中的乘客

时间:2015-10-13 12:39:40

标签: ruby-on-rails ruby capistrano passenger

我是关于rails开发的新手,我的问题是:我有一台带虚拟机的服务器,在Capistrano部署期间,ngnix乘客不会重启。

This examplethis对我不起作用。任何人都可以帮助我!

日志:

14915 pts/2    S+     0:00 tail -f -n 0 /home/deployer/parking/releases/20151013115625/log/production.log
14916 pts/2    S+     0:00 tail -f -n 0 /home/deployer/parking/releases/20151013115625/log/passenger.4324.log
14942 ?        Sl     0:00 Passenger RubyApp: /home/deployer/parking/releases/20151013115625/public (production

deploy.rb:

set :deploy_to, '/home/deployer/parking/'
set :passenger_port, 4324
set :passenger_in_gemfile, true
set :passenger_restart_with_touch, true




set :keep_releases, 5

namespace :deploy do

  after :restart, :clear_cache do
    on roles(:web), in: :groups, limit: 3, wait: 10 do

    end
  end

end


after 'deploy:publishing', 'deploy:restart'

set :passenger_restart_command, 'passenger-config restart-app'
set :passenger_restart_options, -> { "#{deploy_to} --ignore-app-not-running" }

0 个答案:

没有答案