FIX: `yarn install` in web.template.yml (#565)

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.

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
@@ -157,6 +157,11 @@ run:
   - exec:
       cd: $home
+        - "[ ! -d 'node_modules' ] || su discourse -c 'yarn install --production'"
+  - exec:
+      cd: $home
+      cmd:
         - su discourse -c 'bundle exec rake plugin:pull_compatible_all'
       raise_on_fail: false

GitHub sha: ef5b6e30c9f66bb51ff1f8d5eb83af4c54cc298b

This commit appears in #565 which was approved by eviltrout. It was merged by davidtaylorhq.