Skip to content

Commit

Permalink
Fixup CI step
Browse files Browse the repository at this point in the history
We need to establish a connection to the database manually
  • Loading branch information
stephenbinns committed Aug 6, 2024
1 parent 3b0cc6e commit 5cb524a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/que
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ secondary_queues = options.secondary_queues || []

Que.logger ||= Logger.new($stdout)

if options.ci
require "active_record"

Que.connection = ActiveRecord
end

begin
Que.logger.level = Logger.const_get(log_level.upcase) if log_level
rescue NameError
Expand Down

0 comments on commit 5cb524a

Please sign in to comment.