Add the PATH to the current nodejs version in order to run yarn

This commit is contained in:
Greg Karékinian 2019-01-08 17:01:00 +01:00
parent 82fdd8c6fd
commit 2bd8bf14e6

View File

@ -151,7 +151,7 @@ application mastodon_path do
environment "HOME" => mastodon_path
user "mastodon"
cwd mastodon_path
command "yarn install --pure-lockfile"
command "PATH=\"/usr/local/nodejs-binary-#{node['nodejs']['version']}/bin:$PATH\" yarn install --pure-lockfile"
end
rails do
@ -168,7 +168,7 @@ application mastodon_path do
user "mastodon"
group "mastodon"
cwd mastodon_path
command "PATH=\"/opt/ruby_build/builds/#{ruby_version}/bin:$PATH\" /opt/ruby_build/builds/#{ruby_version}/bin/bundle exec rake assets:precompile"
command "PATH=\"/usr/local/nodejs-binary-#{node['nodejs']['version']}/bin:/opt/ruby_build/builds/#{ruby_version}/bin:$PATH\" /opt/ruby_build/builds/#{ruby_version}/bin/bundle exec rake assets:precompile"
end
service "mastodon-web" do