mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Don't swallow an error if we can't run yarn ember build
This commit is contained in:
@@ -229,7 +229,15 @@ def copy_ember_cli_assets
|
|||||||
assets = {}
|
assets = {}
|
||||||
files = {}
|
files = {}
|
||||||
|
|
||||||
system("yarn --cwd #{ember_dir} run ember build -prod")
|
unless system("yarn --cwd #{ember_dir} install")
|
||||||
|
STDERR.puts "Error running yarn install"
|
||||||
|
exit 1
|
||||||
|
end
|
||||||
|
|
||||||
|
unless system("yarn --cwd #{ember_dir} run ember build -prod")
|
||||||
|
STDERR.puts "Error running ember build"
|
||||||
|
exit 1
|
||||||
|
end
|
||||||
|
|
||||||
# Copy assets and generate manifest data
|
# Copy assets and generate manifest data
|
||||||
Dir["#{ember_cli_assets}**/*"].each do |f|
|
Dir["#{ember_cli_assets}**/*"].each do |f|
|
||||||
|
|||||||
Reference in New Issue
Block a user