From: Sam Saffron Date: Tue, 19 Mar 2019 08:42:12 +0000 (+1100) Subject: FEATURE: add missing hooks into web.yml template X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5716d28f3c6d2a20a9fe2491fce6c131c9951f5c;p=discourse_docker.git 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) --- 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