Sha256: b252849f2fc3e7abfde9e1b3c0fb234ec5e4038263b42a8c6fdcb922c13f5e98
Contents?: true
Size: 1.52 KB
Versions: 40
Compression:
Stored size: 1.52 KB
Contents
# Eye configuration file (https://github.com/kostya/eye) # Load with: 'eye l Eyefile' # Watch processes: 'eye w' # Stop all processes: 'eye stop <%= @config.app_name %>' # Start all processes: 'eye start <%= @config.app_name %>' # Restart unicorn: 'eye restart <%= @config.app_name %>:unicorn' APP_ROOT = File.expand_path('..', __FILE__) Eye.load '.env' Eye.config do logger File.join APP_ROOT, 'log/eye.log' end Eye.application APP_NAME do working_dir APP_ROOT auto_start false notify :errors trigger :flapping, times: 3, within: 1.minute, retry_in: 1.minutes, retry_times: 1 process :unicorn do unicorn_env = { 'RAILS_ENV' => RAILS_ENV, 'UNICORN_BEHIND_NGINX' => UNICORN_BEHIND_NGINX } unicorn_env['UNICORN_WORKERS'] = UNICORN_WORKERS if defined?(UNICORN_WORKERS) unicorn_env['UNICORN_TIMEOUT'] = UNICORN_TIMEOUT if defined?(UNICORN_TIMEOUT) unicorn_env['UNICORN_PORT'] = UNICORN_PORT if defined?(UNICORN_PORT) env unicorn_env start_command "./bin/unicorn -c #{APP_ROOT}/config/unicorn.rb -E #{RAILS_ENV} -D" pid_file './tmp/pids/unicorn.pid' stop_signals [:QUIT, 10.seconds, :KILL] restart_command 'kill -USR2 {PID}' start_timeout 100.seconds restart_grace 30.seconds monitor_children do stop_command 'kill -QUIT {PID}' end end process :sidekiq do start_command "./bin/sidekiq -e #{RAILS_ENV} -C ./config/sidekiq.yml" pid_file "./tmp/pids/sidekiq.pid" stdall "log/sidekiq.log" daemonize true stop_signals [:USR1, 0, :TERM, 10.seconds, :KILL] end end
Version data entries
40 entries across 40 versions & 1 rubygems