Sha256: d4c663d45ec7b7e53cc59f06312d9d70df83c60bf71125e0a24bbfab657cd236
Contents?: true
Size: 946 Bytes
Versions: 3
Compression:
Stored size: 946 Bytes
Contents
Bluepill.application("<%= app %>", :foreground => false, :log_file => "/var/log/bluepill.log") do |app| app.uid = "<%= user %>" app.gid = "<%= user %>" <% engine.processes.values.each do |process| %> <% 1.upto(concurrency[process.name]) do |num| %> <% port = engine.port_for(process, num, options[: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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
foreman-0.23.1 | data/export/bluepill/master.pill.erb |
foreman-0.22.0 | data/export/bluepill/master.pill.erb |
foreman-0.21.0 | data/export/bluepill/master.pill.erb |