Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 16 lines (12 sloc) 0.311 kb
12f044c Guilherme Cavalcanti Makes possible starting the worker as a daemon
guiocavalcanti authored
1 require 'bundler/setup'
2 require 'daemons'
3
4 require_relative 'boot'
5
6 options = {
7 :backtrace => true,
8 :log_output => true,
9 :app_name => 'permit',
10 :dir_mode => :script,
11 :dir => '/tmp/pids',
12 :log_dir => "#{File.expand_path File.dirname __FILE__}/log"
13 }
14
15 Daemons.run("worker.rb", options)
Something went wrong with that request. Please try again.