From 4719cc03837490ed4bf1b9725d75a686e56e5a6a Mon Sep 17 00:00:00 2001 From: claw0ry Date: Wed, 11 Dec 2024 13:56:52 +0100 Subject: fresh start --- ...matically-deploy-your-website-with-git-hooks.md | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 content/posts/automatically-deploy-your-website-with-git-hooks.md (limited to 'content/posts/automatically-deploy-your-website-with-git-hooks.md') diff --git a/content/posts/automatically-deploy-your-website-with-git-hooks.md b/content/posts/automatically-deploy-your-website-with-git-hooks.md new file mode 100644 index 0000000..a2af52e --- /dev/null +++ b/content/posts/automatically-deploy-your-website-with-git-hooks.md @@ -0,0 +1,33 @@ +--- +title: 'Automatically Deploy Your Website With Git Hooks' +description: 'How to automatically deploy your website using git hooks' +date: '2024-11-14' +tags: ['linux', 'git', 'web'] +draft: true +--- + +In the spirit of [small web](https://small-web.org) and [indie web](https://indieweb.org) let's take a look at how we can deploy our own website with git hooks and a simple shell script. + + + +In the old days, before Wordpress and git, you developed your website locally on your computer using HTML, CSS and Javascript. When you wanted to deploy a new version of your site, you simply opened a FTP program, connected to the webserver and drag-and-drop the files into it. + +In the modern days, things have become more complicated and people often tie into paid services to avoid the complexity of deploying your own website. But, if you are a little interessted in web servers, git and owning your content it doesnt have to be that complicated. + +## 1. Setup a server + +You own server at home. +Using Linode/Digital Ocean. + +## 2. Setup a domain + +## 2. Install a web server + +Either nginx or Apache2 + +## 3. Install git + +## 4. Setup git hooks + +## 5. Deploy with git push + -- cgit v1.2.3