ruby on rails - Why puma staging environment does not start? -
when try start web-server in staging
environment not run. in production
environment same configuration - ok.
where can error?
my config puma is:
deploy_to = env['current_path'] workers integer(env['puma_workers'] || 3) threads integer(env['min_threads'] || 16), integer(env['max_threads'] || 16) daemonize true preload_app! backlog = integer(env['puma_backlog'] || 20) directory "#{deploy_to}/current" pidfile "#{deploy_to}/shared/tmp/pids/puma.pid" state_path "#{deploy_to}/shared/tmp/sockets/puma.state" stdout_redirect "#{deploy_to}/shared/log/puma.stdout.log", "#{deploy_to}/shared/log/puma.stderr.log" bind "unix://#{deploy_to}/shared/tmp/sockets/kiosk.sock" activate_control_app "unix://#{deploy_to}/shared/tmp/sockets/pumactl.sock" on_worker_boot # worker specific setup activesupport.on_load(:active_record) config = activerecord::base.configurations[rails.env] || rails.application.config.database_configuration[rails.env] config['pool'] = env['max_threads'] || 16 activerecord::base.establish_connection(config) end end
upd
puma.stdout.log
=== puma startup: 2016-01-28 09:54:11 +0000 === [14731] * starting control server on unix:///home/ubuntu/staging/shared/tmp/sockets/pumactl.sock [14731] - worker 0 (pid: 14794) booted, phase: 0 [14731] - worker 1 (pid: 14814) booted, phase: 0 [14731] - worker 2 (pid: 14829) booted, phase: 0 [14731] - gracefully shutting down workers... [14731] === puma shutdown: 2016-01-28 09:55:17 +0000 === [14731] - goodbye!
Comments
Post a Comment