Add the PATH to the current nodejs version in order to run yarn
This commit is contained in:
parent
82fdd8c6fd
commit
2bd8bf14e6
@ -151,7 +151,7 @@ application mastodon_path do
|
|||||||
environment "HOME" => mastodon_path
|
environment "HOME" => mastodon_path
|
||||||
user "mastodon"
|
user "mastodon"
|
||||||
cwd mastodon_path
|
cwd mastodon_path
|
||||||
command "yarn install --pure-lockfile"
|
command "PATH=\"/usr/local/nodejs-binary-#{node['nodejs']['version']}/bin:$PATH\" yarn install --pure-lockfile"
|
||||||
end
|
end
|
||||||
|
|
||||||
rails do
|
rails do
|
||||||
@ -168,7 +168,7 @@ application mastodon_path do
|
|||||||
user "mastodon"
|
user "mastodon"
|
||||||
group "mastodon"
|
group "mastodon"
|
||||||
cwd mastodon_path
|
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
|
end
|
||||||
|
|
||||||
service "mastodon-web" do
|
service "mastodon-web" do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user