i was wondering where to call DB (or external resources) initialization/checking scripts.
Actually i use the ODM component of Phalcon and i need to ensure indexes for my entities, but maybe in future i need to do some heavy operation like move/copy data (a sort of migrations), check presence of some lib or other resource on the server etc. What would be the best practice?
I think creatint a Cli script to run just before a deploy would be a good solution. Do you think there is something better?