CodeIgniter Forums
Automate CodeIgniter deployment process? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Automate CodeIgniter deployment process? (/showthread.php?tid=88134)



Automate CodeIgniter deployment process? - CharlotteFilemdar - 07-27-2023

Currently, I am hosting CodeIgniter on Hostinger using the Git webhook, which allows for continuous development. Hostinger listens to any git push and triggers its deployment script to host the site.

However, I encountered an issue where it does not run the "update" and "serve" commands automatically. As a result, I have to access SSH every time I make changes to the project and manually execute "composer update" and "php spark serve" to keep the site running.

I am looking for a solution that automates this process and eliminates the need for manual intervention every time I update the project. Is there any solution or workaround available to streamline this workflow and enable automatic execution of the necessary commands after each git push? Any guidance or suggestions would be highly appreciated. Thank you in advance for your help.