Sha256: c59ef2b428983ae9f851fb779a3052a6c45147559c5cf3a896796f8e2461876e

Contents?: true

Size: 822 Bytes

Versions: 11

Compression:

Stored size: 822 Bytes

Contents

<%
app_names = []
engine.each_process do |name, process|
  1.upto(engine.formation[name]) do |num|
    port = engine.port_for(process, num)
    full_name = "#{app}-#{name}-#{num}"
    environment = engine.env.merge("PORT" => port.to_s).map do |key, value|
    	value = shell_quote(value)
    	value = value.gsub('\=', '=')
    	value = value.gsub('\&', '&')
    	value = value.gsub('\?', '?')
      "#{key}=\"#{value}\""
    end
    app_names << full_name
-%>
[program:<%= full_name %>]
command=<%= process.command %>
autostart=true
autorestart=true
stdout_logfile=<%= log %>/<%= name %>-<%= num %>.log
stderr_logfile=<%= log %>/<%= name %>-<%= num %>.error.log
user=<%= user %>
directory=<%= engine.root %>
environment=<%= environment.join(',') %>

<%
  end
end
-%>
[group:<%= app %>]
programs=<%= app_names.join(',') %>

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
foreman-0.88.1 data/export/supervisord/app.conf.erb
fiveman-0.1.1 data/export/supervisord/app.conf.erb
fiveman-0.1.0 data/export/supervisord/app.conf.erb
overman-0.87.3 data/export/supervisord/app.conf.erb
foreman-0.87.2 data/export/supervisord/app.conf.erb
foreman-0.87.1 data/export/supervisord/app.conf.erb
ypadlyak-foreman-0.85.0 data/export/supervisord/app.conf.erb
foreman-0.87.0 data/export/supervisord/app.conf.erb
foreman-0.86.0 data/export/supervisord/app.conf.erb
foreman-0.85.0 data/export/supervisord/app.conf.erb
foreman-0.84.0 data/export/supervisord/app.conf.erb