mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 19:46:55 +08:00
DEV: Make Ember CLI assets the default in production (#15861)
This was reverted ine92f57255d
due to memory usage concerns. This memory issue was resolved by4cceb55621
.
This commit is contained in:
parent
7afe768d60
commit
ecc07fd8dc
|
@ -23,7 +23,7 @@ class QunitController < ApplicationController
|
|||
|
||||
@is_proxied = is_ember_cli_proxy?
|
||||
@legacy_ember = if Rails.env.production?
|
||||
ENV['EMBER_CLI_PROD_ASSETS'] != "1"
|
||||
ENV['EMBER_CLI_PROD_ASSETS'] == "0"
|
||||
else
|
||||
!@is_proxied
|
||||
end
|
||||
|
|
|
@ -180,7 +180,7 @@ module Discourse
|
|||
discourse/tests/test_starter.js
|
||||
}
|
||||
|
||||
if ENV['EMBER_CLI_PROD_ASSETS'] != "1"
|
||||
if ENV['EMBER_CLI_PROD_ASSETS'] == "0"
|
||||
config.assets.precompile += %w{
|
||||
discourse/tests/test-support-rails.js
|
||||
discourse/tests/test-helpers-rails.js
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user