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)
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