Post deployment script
Issue #32
resolved
Hello,
Is there a way to include post deployment script? something like running "composer install" after the files has been updated?
Thanks
Comments (3)
-
repo owner -
@alixandru Hi, thanks for you advice. But it looks like a nice feature to have. For example in my case I need to refresh database migrations if they have been changed. I'll create a custom script, thanks for pointing where exactly to add it.
-
repo owner - changed status to resolved
- Log in to comment
The script does not have this ability built in, but you can easily change the code to do additional processing after the sync. For example, you can add custom code in deploy.php, after line 96. If
syncFull
orsyncChanges
methods don't returnfalse
, you can perform your post-deployment tasks (i.e. call another PHP script or a system command).I hope this helps.