canvas-lms/script/delayed_job

12 lines
343 B
Ruby
Executable File

#!/usr/bin/env ruby
# frozen_string_literal: true
ENV['RUNNING_AS_DAEMON'] = 'true'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
# We avoid loading the whole rails environment here, so that commands like
# `status` and `start` return much faster.
require 'bundler/setup'
require 'delayed_job'
Delayed::CLI.new.run()