Skip to content

Instantly share code, notes, and snippets.

View nguyendachuy's full-sized avatar
🏠
Working from home

Nguyen Huy nguyendachuy

🏠
Working from home
  • Freelancer - Fullstack web PHP
  • Hue - Viet Nam
View GitHub Profile
@nguyendachuy
nguyendachuy / git-deployment.md
Last active July 16, 2024 09:51 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.

@nguyendachuy
nguyendachuy / gist:531d7a00e373dbd00e9324778e66f0df
Created February 19, 2024 04:19
Fix the error: The repository 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu mantic Release' does not have a Release file.
Reading package lists... Done
E: The repository 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu mantic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
================================
cd /etc/apt/sources.list.d/
nano ondrej-ubuntu-php-mantic.sources