Skip to content

Instantly share code, notes, and snippets.

View JPCodaLot's full-sized avatar

JP Harbaugh JPCodaLot

  • Colorado
  • 12:54 (UTC -06:00)
View GitHub Profile
@JPCodaLot
JPCodaLot / CI-CD to LAMP using GitHub Actions.md
Last active December 15, 2023 16:50
Continuous deployment to a LAMP stack using Git and GitHub Actions

Using Git and GitHub Actions for deployment is overly complicated process. This document outlines what needs to be setup to get everything working together. This tutorial assumes you have already created or have access to you websites code in a GitHub repository and you have setup a LAMP stack server using a non root user.

If you havn't setup your LAMP stack yet check out this great tutorial https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-20-04. You might also need to setup and enable HTTPS to your website using this tutorial https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-20-04.

Overview

Changes originate inside the Desktop from your Text Editor. Those changes are saved to the Project Folder and uploaded to the Development Folder via SFTP on the Server for testing. Once the changes have been approved they are committed into the Desktop's Git and pushed to GitHub. When `Git