diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2018-09-11 22:38:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-11 22:38:42 -0400 |
commit | abdfe2b667da72f0f6b67871d43cafe1dbf23baf (patch) | |
tree | af73f3c9fd5313b1511e2226710484118ab88622 /railties | |
parent | 81174b35c6bfb183149358f3a86e9d0542dad23d (diff) | |
parent | f443aac3402dc2dd294f3ed8b0c4b20b9859b169 (diff) | |
download | rails-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.rake | 2 |
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 |