Sha256: cbce41fd3474529fc5cb995551052f538141b9dac4ea2e9ac4574fd6aacfeab9

Contents?: true

Size: 938 Bytes

Versions: 38

Compression:

Stored size: 938 Bytes

Contents

Bluepill.application("<%= app %>", :foreground => false, :log_file => "/var/log/bluepill.log") do |app|

  app.uid = "<%= user %>"
  app.gid = "<%= user %>"

<% engine.procfile.entries.each do |process| %>
<% 1.upto(concurrency[process.name]) do |num| %>
<% port = engine.port_for(process, num, self.port) %>
  app.process("<%= process.name %>-<%=num%>") do |process|
    process.start_command = "<%= process.command.gsub("$PORT", port.to_s) %>"

    process.working_dir = "<%= engine.directory %>"
    process.daemonize = true
    process.environment = {"PORT" => "<%= port %>"}
    process.stop_signals = [:quit, 30.seconds, :term, 5.seconds, :kill]

    process.stdout = process.stderr = "<%= log_root %>/<%= app %>-<%= process.name %>-<%=num%>.log"

    process.monitor_children do |children|
      children.stop_command "kill -QUIT {{PID}}"
    end

    process.group = "<%= app %>-<%= process.name %>"
  end
<% end %>
<% end %>
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
foreman-0.38.0-mingw32 data/export/bluepill/master.pill.erb
foreman-0.38.0-java data/export/bluepill/master.pill.erb
foreman-0.38.0 data/export/bluepill/master.pill.erb
foreman-0.37.2-mingw32 data/export/bluepill/master.pill.erb
foreman-0.37.2-java data/export/bluepill/master.pill.erb
foreman-0.37.2 data/export/bluepill/master.pill.erb
foreman-0.37.1-mingw32 data/export/bluepill/master.pill.erb
foreman-0.37.1-java data/export/bluepill/master.pill.erb
foreman-0.37.1 data/export/bluepill/master.pill.erb
foreman-0.37.0-mingw32 data/export/bluepill/master.pill.erb
foreman-0.37.0-java data/export/bluepill/master.pill.erb
foreman-0.37.0 data/export/bluepill/master.pill.erb
foreman-0.37.0.pre5-mingw32 data/export/bluepill/master.pill.erb
foreman-0.37.0.pre5-java data/export/bluepill/master.pill.erb
foreman-0.37.0.pre5 data/export/bluepill/master.pill.erb
foreman-0.37.0.pre4-mingw32 data/export/bluepill/master.pill.erb
foreman-0.37.0.pre4-java data/export/bluepill/master.pill.erb
foreman-0.37.0.pre4 data/export/bluepill/master.pill.erb