Sha256: 49f23e581530ef8b369b043af0d774e4c370256c1d0bd8b4082227ef69b72304

Contents?: true

Size: 1.12 KB

Versions: 50

Compression:

Stored size: 1.12 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.stop_grace_time = 45.seconds

    process.stdout = process.stderr = "/var/log/app/app-alpha-1.log"

    process.monitor_children do |children|
      children.stop_command "kill {{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.stop_grace_time = 45.seconds

    process.stdout = process.stderr = "/var/log/app/app-bravo-1.log"

    process.monitor_children do |children|
      children.stop_command "kill {{PID}}"
    end

    process.group = "app-bravo"
  end


end

Version data entries

50 entries across 50 versions & 2 rubygems

Version Path
foreman-capistrano-0.53.4 spec/resources/export/bluepill/app.pill
foreman-0.62.0-mingw32 spec/resources/export/bluepill/app.pill
foreman-0.62.0-java spec/resources/export/bluepill/app.pill
foreman-0.62.0 spec/resources/export/bluepill/app.pill
foreman-capistrano-0.53.3 spec/resources/export/bluepill/app.pill
foreman-capistrano-0.53.2 spec/resources/export/bluepill/app.pill
foreman-capistrano-0.53.1 spec/resources/export/bluepill/app.pill
foreman-capistrano-0.53.0 spec/resources/export/bluepill/app.pill
foreman-capistrano-0.52.6 spec/resources/export/bluepill/app.pill
foreman-0.61.0-mingw32 spec/resources/export/bluepill/app.pill
foreman-0.61.0-java spec/resources/export/bluepill/app.pill
foreman-0.61.0 spec/resources/export/bluepill/app.pill
foreman-capistrano-0.52.5 spec/resources/export/bluepill/app.pill
foreman-capistrano-0.52.4 spec/resources/export/bluepill/app.pill
foreman-capistrano-0.52.3 spec/resources/export/bluepill/app.pill
foreman-capistrano-0.52.2 spec/resources/export/bluepill/app.pill
foreman-capistrano-0.52.1 spec/resources/export/bluepill/app.pill
foreman-capistrano-0.52.0 spec/resources/export/bluepill/app.pill
foreman-capistrano-0.51.5 spec/resources/export/bluepill/app.pill
foreman-0.60.2 spec/resources/export/bluepill/app.pill