Set the NODE_ENV variable when running yarn

The assets precompilation task runs yarn with NODE_ENV=production,
before this change yarn would install a different set of packages, with
this change the run from the assets precompilation is idempotent
This commit is contained in:
Greg 2019-09-27 10:55:32 +02:00
parent b1cfa6f6f7
commit 4b39ea60dd
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ application mastodon_path do
end
execute "yarn install" do
environment "HOME" => mastodon_path
environment "HOME" => mastodon_path, "NODE_ENV" => "production"
user mastodon_user
cwd mastodon_path
command "yarn install --pure-lockfile"