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