aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2018-09-11 22:38:42 -0400
committerGitHub <noreply@github.com>2018-09-11 22:38:42 -0400
commitabdfe2b667da72f0f6b67871d43cafe1dbf23baf (patch)
treeaf73f3c9fd5313b1511e2226710484118ab88622 /railties
parent81174b35c6bfb183149358f3a86e9d0542dad23d (diff)
parentf443aac3402dc2dd294f3ed8b0c4b20b9859b169 (diff)
downloadrails-abdfe2b667da72f0f6b67871d43cafe1dbf23baf.tar.gz
rails-abdfe2b667da72f0f6b67871d43cafe1dbf23baf.tar.bz2
rails-abdfe2b667da72f0f6b67871d43cafe1dbf23baf.zip
Merge pull request #33819 from kevindew/yarn-path
Run yarn install relative to Rails.root
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/tasks/yarn.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/tasks/yarn.rake b/railties/lib/rails/tasks/yarn.rake
index cf45a392e8..4fb8586b69 100644
--- a/railties/lib/rails/tasks/yarn.rake
+++ b/railties/lib/rails/tasks/yarn.rake
@@ -9,7 +9,7 @@ namespace :yarn do
rails_env = ENV["RAILS_ENV"]
valid_node_envs.include?(rails_env) ? rails_env : "production"
end
- system({ "NODE_ENV" => node_env }, "./bin/yarn install --no-progress --frozen-lockfile")
+ system({ "NODE_ENV" => node_env }, "#{Rails.root}/bin/yarn install --no-progress --frozen-lockfile")
end
end