Puma以单一模式开始但没有真正开始

时间:2016-05-07 16:44:30

标签: ruby-on-rails jenkins

我正在配置Jenkins以在生产我的rails应用程序中进行部署。

在jenkings结束时,我可以看到:

+ bin/bundle exec puma -C config/puma.rb
Puma starting in single mode...
* Version 3.4.0 (ruby 2.2.2-p95), codename: Owl Bowl Brawl
* Min threads: 0, max threads: 16
* Environment: production
* Daemonizing...
 Finished: SUCCESS

脚本之后,puma没有运行......

配置/ puma.rb

threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i
threads threads_count, threads_count
railsenv = 'production'
directory '/var/lib/jenkins/workspace/MyRailsApp'
environment railsenv
daemonize true
pidfile "/tmp/pids/puma-#{railsenv}.pid"
state_path "/tmp/pids/puma-#{railsenv}.state"
threads 0, 16
bind "unix:///tmp/my-rails-app.sock"
port        ENV.fetch("PORT") { 3000 }
preload_app!
on_worker_boot do
   ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
end
plugin :tmp_restart

用Jenkins开始/重启美洲狮的最佳方法是什么?

0 个答案:

没有答案