mirror of
https://github.com/discourse/discourse.git
synced 2025-03-24 12:20:08 +08:00
DEV: Don't require non production bundler assets in production.
This commit is contained in:
parent
a5b804fec4
commit
a2babcafd8
@ -37,7 +37,7 @@ GlobalSetting.load_defaults
|
||||
|
||||
require 'pry-rails' if Rails.env.development?
|
||||
|
||||
if defined?(Bundler)
|
||||
if defined?(Bundler) && !Rails.env.production?
|
||||
Bundler.require(*Rails.groups(assets: %w(development test profile)))
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user