you can use git hooks
How do you deploy your Laravel project to your self hosted server?
Hi, I am currently working locally on a laravel site I have hosted on Digital Ocean. I like to show the site to a friend, so every now and then I upload and overwrite my site on digital ocean using an ftp. Manually uploading via ftp seems like an obsolete way to update my site (not to mention I have to redo my storage:link every time I upload.) I am looking into Git, but I am having trouble understanding how to push from github to digital ocean. How do you all tackle this problem?
Thanks!
THE ANSWER TO YOUR QUESTION IS DEFINITELY HERE
--> https://devmarketer.io/learn/deploy-laravel-5-app-lemp-stack-ubuntu-nginx/
what u are looking for starts at STEP 11
but u can consider reading the other steps just for better understanding of th setup
Please or to participate in this conversation.