Steps:
- You would login into the AWS under your credentials
- Go to your specific instance that you created to manage your website
- You would then navigate to the deployments file by doing
cd /deployments
- To be safe, perform an
ls
command and make sure that you do see your repository so that you aren’t messing with anybody elses thing
- You would then cd into your repository file
- Before doing anything, you would first take your runtime down so tht it doesn’t break the server
- After getting confirmation from AWS that the site went down, you would then perform a git pull command
- After receiving confirmation of a successful git pull, you can then rebuild up your site