Blame view

script/delayed_job 462 Bytes
dfa8e6f5   Daniela Feitosa   Invitation e-mail...
1
2
3
4
5
6
7
8
#!/usr/bin/env ruby

## This is the Noosfero delayed job controller script. It starts and stops the
# delayed job daemon, which is implemented in the DelayedJob plugin.
#
# The role of this script is to just start/stop the daemon, write a PID file,
# etc. The actual feed update logic is DelayedJob plugin.

ca285e1e   Daniela Feitosa   fetching emails f...
9
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'config', 'environment'))
ca285e1e   Daniela Feitosa   fetching emails f...
10
require 'delayed/command'
ca285e1e   Daniela Feitosa   fetching emails f...
11
Delayed::Command.new(ARGV).daemonize