Sha256: 7c660d9ccc1cdd5d876c6f2c6f900aac622ff4d85b5f3f9c0db86f957abdcce2

Contents?: true

Size: 852 Bytes

Versions: 7

Compression:

Stored size: 852 Bytes

Contents

  process 'puma' do
    pid_file "<%= fetch(:puma_pid) %>"
    start_command "<%= fetch(:rbenv_prefix) %> bundle exec puma -C <%= fetch(:puma_conf) %> --daemon -e <%= fetch(:rails_env) %>"
    stdall "<%= fetch(:puma_access_log) %>"

    # stop signals:
    # http://puma.bogomips.org/SIGNALS.html
    stop_signals [:TERM, 10.seconds]

    # soft restart
    restart_command "kill -USR2 {PID}"

    # Master process checks
    <%= fetch(:puma_master_cpu_checks) %>
    <%= fetch(:puma_master_memory_checks) %>

    start_timeout <%= options[:start_timeout] %>.seconds
    stop_timeout <%= options[:stop_timeout] %>.seconds
    restart_timeout <%= options[:restart_timeout] %>.seconds

    start_grace <%= options[:start_grace] %>.seconds
    stop_grace <%= options[:stop_grace] %>.seconds
    restart_grace <%= options[:restart_grace] %>.seconds
  end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
negroku-2.8.6 lib/negroku/capistrano/templates/eye/_puma.erb
negroku-2.8.5 lib/negroku/capistrano/templates/eye/_puma.erb
negroku-2.8.4 lib/negroku/capistrano/templates/eye/_puma.erb
negroku-2.8.3 lib/negroku/capistrano/templates/eye/_puma.erb
negroku-2.8.2 lib/negroku/capistrano/templates/eye/_puma.erb
negroku-2.8.1 lib/negroku/capistrano/templates/eye/_puma.erb
negroku-2.8.0 lib/negroku/capistrano/templates/eye/_puma.erb