Sha256: ee79c7b872af42d4c8a3be134101658c5986a45efc6ebf4e99d8ff4b078d396a

Contents?: true

Size: 1.28 KB

Versions: 1

Compression:

Stored size: 1.28 KB

Contents

require 'rearview'

Rearview.configure do |config|

  config.logger = Rails.logger
  config.sandbox_dir = Rails.root + "sandbox"

  # Configure the path to a ruby 1.9.3 binary that will be used to execute your
  # monitor script in the sandbox.
  # ex:
  # config.sandbox_exec = ["/bin/env","-i","PATH=/opt/ruby-1.9.3/bin", "bundle", "exec", "ruby"]
  config.sandbox_exec = ["rvm-exec","ruby-1.9.3@rearview-sandbox","ruby"]

  # How long to wait for a monitor script to run in seconds. After this time
  # period the monitor script will be terminated.
  config.sandbox_timeout = 10

  # This must poing to the graphite web server
  # ex:
  # config.graphite_url="http://graphite.mycompany.com"
  config.graphite_url = nil

  # This is the email from: address used when sending alerts
  config.default_from = "rearview@localhost"

  case Rails.env
    when "test"
      config.preload_jobs = false
    when "production"
      # If you want to make sure your configuration is correct on server startup
      # config.verify = true
  end

  if File.basename($0) == "rake"
    config.enable_monitor = false
  end

  # Options passed via environment will override anything else set to this point...
  if ENV['REARVIEW_OPTS'].present?
    config.with_argv(ENV['REARVIEW_OPTS'].try(:split))
  end

end

Rearview.boot!

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rearview-1.0.0.rc5-jruby lib/generators/templates/rearview.rb