Sha256: 782e86b69ee504f847b9e33e868b6f49da67cec6f5ad1ff4b580dd6c9b89b643
Contents?: true
Size: 1.5 KB
Versions: 1
Compression:
Stored size: 1.5 KB
Contents
# Eye configuration file (https://github.com/kostya/eye) # Load with: 'eye l Eyefile' # Watch processes: 'eye w' # Stop all processes: 'eye stop <%= app_name %>' # Start all processes: 'eye start <%= app_name %>' # Restart unicorn: 'eye restart <%= 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
railman-0.2.0 | templates/rails_app/Eyefile.tt |