run script after git deploy
the ability to provide a .sh script that will be run after each git deploy if the file cloudways/build.sh is found for exemple.
this way you can run npm install, or anything related to a framework deploy (symfony commands for exemple), or even database migrations
This is must feature in any basic cloud deploy service, just a textarea for deploy script to run after deploy...
It losses the point if I need to connect via ssh each deployment and run commands manually
Ramses Moreno commented
Running composer update and Laravel migrations after deployments would be easier with this option.
Zac Fair commented
+1 - This would be great!
Daniel Ramirez commented
Yes please! This would be very useful for automatically running NPM scripts after every deploy.
Visyu Solution commented
Maybe you could use git hooks for this. Webhooks don't work for this.
+1. "Deployment via git" functionality is pretty useless without this feature.
Patrick Steil commented
Yes, yes, yes! This would allow us to run composer and to be able to not have any dependent packages within our git repo.
And the ability to automatically have this run on a git push of that repo would be awesome.
Alvin Bakker commented
Yes this would be almost a musthave for us, as after we do a git deploy we want to run Laravel commands line `php artisan route:cache` etc
Please consider adding this feature. Many of my deployments require a Composer or database change so this would be very useful.
This would be great. So after a successful git deployment if I was able to run 'composer install' and 'php artisan migrate' it would give me full automatic deployments.