From 4b39ea60dd074ab527fb8c4637f096e3c227551a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Fri, 27 Sep 2019 10:55:32 +0200 Subject: [PATCH] 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 --- site-cookbooks/kosmos-mastodon/recipes/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site-cookbooks/kosmos-mastodon/recipes/default.rb b/site-cookbooks/kosmos-mastodon/recipes/default.rb index 908fdd6..9e9999e 100644 --- a/site-cookbooks/kosmos-mastodon/recipes/default.rb +++ b/site-cookbooks/kosmos-mastodon/recipes/default.rb @@ -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"