From 5716d28f3c6d2a20a9fe2491fce6c131c9951f5c Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Tue, 19 Mar 2019 19:42:12 +1100 Subject: [PATCH] FEATURE: add missing hooks into web.yml template Previously bundle+migrate+precompile were in 1 big chunk making it impossible to add multisite:migrate cleanly. This adds 2 more hooks db_migrate and assets_precompile which make it way simple to inject multisite migrate (either before or after db_migrate) --- templates/web.template.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/templates/web.template.yml b/templates/web.template.yml index 14a52fd..395ddcb 100644 --- a/templates/web.template.yml +++ b/templates/web.template.yml @@ -156,9 +156,16 @@ run: hook: bundle_exec cmd: - su discourse -c 'bundle install --deployment --verbose --without test --without development --retry 3 --jobs 4' + - exec: + cd: $home + hook: db_migrate + cmd: - su discourse -c 'bundle exec rake db:migrate' + - exec: + cd: $home + hook: assets_precompile + cmd: - su discourse -c 'bundle exec rake assets:precompile' - - file: path: /usr/local/bin/discourse chmod: +x -- 2.25.1