FIX: Run `yarn install` when building development image (#638)

The rails app now leans on JS dependencies being present in node_modules
This commit is contained in:
David Taylor 2022-07-13 17:16:26 +01:00 committed by GitHub
parent 3536c188e5
commit 0a97cd9d8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,8 @@ run:
- exec: cd tmp && git clone https://github.com/discourse/discourse.git --depth=1
- exec: chown -R discourse /tmp/discourse
- exec: cd /tmp/discourse && sudo -u discourse bundle install
- exec: cd /tmp/discourse && sudo -u discourse yarn install
- exec: cd /tmp/discourse && sudo -u discourse yarn cache clean
- exec: cd /tmp/discourse && sudo -u discourse bundle exec rake db:migrate
- exec: cd /tmp/discourse && sudo -u discourse RAILS_ENV=test bundle exec rake db:migrate
- exec: rm -fr /tmp/discourse