Sha256: 1825f9b82f1fd063370284500c86d67f93536d4a18672d2833862a3e7bd5e9af

Contents?: true

Size: 855 Bytes

Versions: 1

Compression:

Stored size: 855 Bytes

Contents

<%
app_names = []
engine.procfile.entries.each do |process|
  next if (conc = self.concurrency[process.name]) < 1
  1.upto(self.concurrency[process.name]) do |num|
    port = engine.port_for(process, num, self.port)
    name = if (conc > 1); "#{process.name}-#{num}" else process.name; end
    environment = (engine.environment.map{ |var,env| %{#{var.upcase}="#{env}"} } + [%{PORT="#{port}"}])
    app_name = "#{app}-#{name}"
    app_names << app_name
%>
[program:<%= app_name %>]
command=<%= process.command %>
autostart=true
autorestart=true
stopsignal=QUIT
stdout_logfile=<%= log_root %>/<%=process.name%>-<%=num%>-out.log
stderr_logfile=<%= log_root %>/<%=process.name%>-<%=num%>-err.log
user=<%= user %>
directory=<%= engine.directory %>
environment=<%= environment.join(',') %><%
  end
end
%>

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foreman-0.43.0 data/export/supervisord/app.conf.erb