I want to deploy my laravel application onto my production server which is in digitalocean running ubuntu lamp stack, i develop the code in my local machine and push the latest changes to a git hub repo. what i want is that my production server automatically pulling latest github changes and automatically configuring the composer update and what ever is required to make the application work, i read a bunch or articles online on bare git repos and hooks but I couldn't figure it out as I am a begginer in this, so any help would be appreciated.
if you have no deep knowledge on setting up a server, you could try using Forge and Enyover
Forge is for setting up the server, add worker, cron etc. and enyover for zero downtime deployment, meaning you could push to your repo, then envoyer will automatically pull them from your repo.
Thank you for your replies,
I am aware of Forge and Envoyer which makes it easy to deploy a Laravel application, but i wish to learn others ways and it would be helpful if someone could point me where to look at, i came across the concept of git hooks and automatic updates using exec_shell to execute shell commands in the production server but i am not really getting on implementing it onto the real production server. So any help regarding that is appreciated.
you can follow this article
@abdullahghanem/install-laravel-on-digitalocean-by-lamp-a92ac132f171" target="_blank">https://medium.com/@abdullahghanem/install-laravel-on-digitalocean-by-lamp-a92ac132f171
Hello @alainbelez, i'm pretty sure that you might have found out how to do this already, but i had the same issue, and i just thought i'd share my solution for anyone else that might have the same issue in the future:
After extensive research on the internet, i found the Ultimate guide, works seamlessly if your using nginx or apache from digital ocean hosting: