mirror of
https://github.com/instructure/canvas-lms.git
synced 2025-08-14 10:52:07 +08:00

Change-Id: Iefeed24f9ef69ba53594cdafbd965f6d178c22dd Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/347850 Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com> Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com> QA-Review: Cody Cutrer <cody@instructure.com> Product-Review: Cody Cutrer <cody@instructure.com>
15 lines
415 B
Ruby
Executable File
15 lines
415 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
# frozen_string_literal: true
|
|
|
|
ENV["RUNNING_AS_DAEMON"] = "true"
|
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
# We avoid loading the whole rails environment here, so that commands like
|
|
# `status` and `start` return much faster.
|
|
require "bundler"
|
|
Bundler.self_manager.restart_with_locked_bundler_if_needed
|
|
|
|
require "bundler/setup"
|
|
require "delayed_job"
|
|
|
|
Delayed::CLI.new.run
|