From 4719cc03837490ed4bf1b9725d75a686e56e5a6a Mon Sep 17 00:00:00 2001 From: claw0ry Date: Wed, 11 Dec 2024 13:56:52 +0100 Subject: fresh start --- content/posts/deploy-hugo-on-git-push.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 content/posts/deploy-hugo-on-git-push.md (limited to 'content/posts/deploy-hugo-on-git-push.md') diff --git a/content/posts/deploy-hugo-on-git-push.md b/content/posts/deploy-hugo-on-git-push.md new file mode 100644 index 0000000..dca0ff7 --- /dev/null +++ b/content/posts/deploy-hugo-on-git-push.md @@ -0,0 +1,13 @@ +--- +title: 'Deploy Hugo on Git Push' +description: '' +date: 2024-10-24T21:56:05+02:00 +tags: ['hugo', 'git'] +draft: true +--- + +1. Create a bare repository on your git server +2. Create a git hook "post-receive" in that bare repository +3. On your local machine add the remote repository +4. Push changes from your local machine to the remote repository +5. Watch how hugo builds and deploys to server -- cgit v1.2.3