Sha256: ba76cde32f2b006c012181d78d0154180e0568e7febbd653cf98ea7fa8a1eeab
Contents?: true
Size: 1.06 KB
Versions: 48
Compression:
Stored size: 1.06 KB
Contents
Bluepill.application("app", :foreground => false, :log_file => "/var/log/bluepill.log") do |app| app.uid = "app" app.gid = "app" app.process("alpha-1") do |process| process.start_command = "./alpha" process.working_dir = "/tmp/app" process.daemonize = true process.environment = {"PORT" => "5000"} process.stop_signals = [:quit, 30.seconds, :term, 5.seconds, :kill] process.stdout = process.stderr = "/var/log/app/app-alpha-1.log" process.monitor_children do |children| children.stop_command "kill -QUIT {{PID}}" end process.group = "app-alpha" end app.process("bravo-1") do |process| process.start_command = "./bravo" process.working_dir = "/tmp/app" process.daemonize = true process.environment = {"PORT" => "5100"} process.stop_signals = [:quit, 30.seconds, :term, 5.seconds, :kill] process.stdout = process.stderr = "/var/log/app/app-bravo-1.log" process.monitor_children do |children| children.stop_command "kill -QUIT {{PID}}" end process.group = "app-bravo" end end
Version data entries
48 entries across 48 versions & 1 rubygems