Sha256: 4a33277e8978408dad1408c0fa0f4463dae77dc7a0f90e6535c98e364e401798
Contents?: true
Size: 1.05 KB
Versions: 4
Compression:
Stored size: 1.05 KB
Contents
RUBY = '/usr/local/ruby/1.9.3-p392/bin/ruby' RAILS_ENV = 'production' ROOT = File.expand_path(File.join(File.dirname(__FILE__), %w[ processes ])) CURRENT = File.expand_path(File.join(ROOT, %w{current})) LOGS = File.expand_path(File.join(ROOT, %w{shared log})) PIDS = File.expand_path(File.join(ROOT, %w{shared pids})) Eye.config do logger "#{LOGS}/eye.log" logger_level Logger::ERROR end Eye.application :super_app do env 'RAILS_ENV' => RAILS_ENV working_dir ROOT triggers :flapping, :times => 10, :within => 1.minute process :puma do daemonize true pid_file "#{PIDS}/puma.pid" stdall "#{LOGS}/#{RAILS_ENV}.log" start_command "#{RUBY} bin/puma --port 80 --pidfile #{PIDS}/puma.pid --environment #{RAILS_ENV} config.ru" stop_command "kill -TERM {{PID}}" restart_command "kill -USR2 {{PID}}" start_timeout 15.seconds stop_grace 10.seconds restart_grace 10.seconds checks :cpu, :every => 30, :below => 80, :times => 3 checks :memory, :every => 30, :below => 70.megabytes, :times => [3,5] end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
reel-eye-0.4 | examples/puma.eye |
eye-0.4 | examples/puma.eye |
reel-eye-0.3.2 | examples/puma.eye |
eye-0.3.2 | examples/puma.eye |