File: environment.rb

package info (click to toggle)
ruby-raemon 0.3.0%2Bgit.2012.05.18.b78eaae57c-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 220 kB
  • ctags: 104
  • sloc: ruby: 901; makefile: 4
file content (19 lines) | stat: -rw-r--r-- 403 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Be sure to restart your daemon when you modify this file
require 'rubygems'
require 'bundler'

Bundler.setup

require 'raemon'
Raemon.env = ENV['RAEMON_ENV']
Raemon.root = File.expand_path('../../', __FILE__)

Raemon.config do |config|
  config.server_name  = 'Queued'
  config.worker_class = 'Queued::Worker'
  config.num_workers  = 1
end

Bundler.require(:default, Raemon.env)

Raemon::Server.boot!