This is the fourth part of the Deploy Laravel 5.4 App on LEMP Stack (DigitalOcean Guide) . In the last post, I have shown how to prepare the server for Laravel application deployment. And in this post, I'm going to show how to setup the local machine for production deployment. Make sure that your local Laravel directory is under git version control before you continue. If there is a .git folder in your Laravel folder that means Git is initialized. You can use git log command to check the commit logs. You can learn more about Git from the official website . Following command add new remote and set up our server as a push location. Substitute the red text with your domain name or IP address. git remote add production ssh://root@ 196.0.0.1 /var/repo/site.git You can run git remote command to view a list of existing remotes. You can execute the following command to push it to the server. git push production master It will prompt you to enter the password.The pr...