From ef5b6e30c9f66bb51ff1f8d5eb83af4c54cc298b Mon Sep 17 00:00:00 2001 From: David Taylor Date: Thu, 26 Aug 2021 19:15:13 +0100 Subject: [PATCH] FIX: `yarn install` in web.template.yml (#565) This is required in case dependency versions have changed between the base image, and the current version of Discourse. `yarn install` will only be run when `node_modules` exists, so this change will only affect recent versions of the base image. --- templates/web.template.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/web.template.yml b/templates/web.template.yml index 04d1652..31d9524 100644 --- a/templates/web.template.yml +++ b/templates/web.template.yml @@ -154,6 +154,11 @@ run: cmd: - su discourse -c 'bundle install --deployment --retry 3 --jobs 4 --verbose --without test development' + - exec: + cd: $home + cmd: + - "[ ! -d 'node_modules' ] || su discourse -c 'yarn install --production'" + - exec: cd: $home cmd: -- 2.25.1