8000 Don't load the bundler task in prod · rubysec/rubysec.com@376cc81 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jan 19, 2023. It is now read-only.

Commit 376cc81

Browse files
committed
Don't load the bundler task in prod
1 parent 5585c89 commit 376cc81

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Rakefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ require_relative 'config/application'
55

66
Rails.application.load_tasks
77

8-
require 'bundler/audit/task'
9-
Bundler::Audit::Task.new
8+
unless Rails.env.production?
9+
require 'bundler/audit/task'
10+
Bundler::Audit::Task.new
11+
end
1012

1113
task default: 'bundle:audit'

0 commit comments

Comments
 (0)
0