ensure using the correct version of bundler for script/delayed_job

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>
This commit is contained in:
Cody Cutrer 2024-05-20 15:35:43 -06:00
parent 3b800a5402
commit 42f30e69d4
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,9 @@ 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"