mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
DEV: Make Ember CLI assets the default in production (#15861)
This was reverted in e92f57255de429fcf12c4259235d88c5485d934f due to memory usage concerns. This memory issue was resolved by 4cceb55621aa5a25c72415d78a43bd62be68d68d.
This commit is contained in:
@ -35,7 +35,7 @@ task 'assets:precompile:before' do
|
||||
require 'sprockets'
|
||||
require 'digest/sha1'
|
||||
|
||||
if ENV['EMBER_CLI_PROD_ASSETS'] == "1"
|
||||
if ENV['EMBER_CLI_PROD_ASSETS'] != "0"
|
||||
# Remove the assets that Ember CLI will handle for us
|
||||
Rails.configuration.assets.precompile.reject! do |asset|
|
||||
asset.is_a?(String) &&
|
||||
@ -312,7 +312,7 @@ end
|
||||
|
||||
task 'assets:precompile' => 'assets:precompile:before' do
|
||||
|
||||
copy_ember_cli_assets if ENV['EMBER_CLI_PROD_ASSETS'] == '1'
|
||||
copy_ember_cli_assets if ENV['EMBER_CLI_PROD_ASSETS'] != '0'
|
||||
|
||||
refresh_days = GlobalSetting.refresh_maxmind_db_during_precompile_days
|
||||
|
||||
|
Reference in New Issue
Block a user