79794317

Date: 2025-10-19 14:14:27
Score: 1
Natty:
Report link

It turns out that you can actually nest hooks like this:

before('deploy:cold') do
  before('deploy:migrate', createdb)
end

which answers my question exactly. But keep in mind that you actually want to hook createdb in a different spot rather than at deploy:migrate.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Starscream512