From 934f90605e8ba82b69034b5c61356db081446232 Mon Sep 17 00:00:00 2001 From: HugoPoi Date: Sat, 19 Nov 2022 16:33:50 +0100 Subject: [PATCH] doc: add some deploy doc and readme --- README.md | 3 +++ deploy.sh | 9 +++++++++ v2/config.toml | 8 ++++---- 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 README.md create mode 100644 deploy.sh diff --git a/README.md b/README.md new file mode 100644 index 0000000..a5be73c --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# HugoPoi's blog deploy documentation + +* Some deploy code diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..c6c9cce --- /dev/null +++ b/deploy.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# Build +hugo +# Backup current deploy +ssh home.hugopoi.net sudo yunohost backup create --apps my_webapp +# Deploy full legacy and new blog +rsync -rlgoD --checksum --verbose www/ home.hugopoi.net:/var/www/my_webapp/www/ +# Deploy only the new hugo blog +rsync -rlgoD --verbose --checksum --delete www/v2/ home.hugopoi.net:/var/www/my_webapp/www/v2/ diff --git a/v2/config.toml b/v2/config.toml index 81c1cdb..caacfce 100644 --- a/v2/config.toml +++ b/v2/config.toml @@ -41,10 +41,10 @@ name = "Home" url = "/" weight = 1 -[[menu.nav]] -name = "Blog" -url = "/post/" -weight = 2 +# [[menu.nav]] +# name = "Blog" +# url = "/post/" +# weight = 2 # [[menu.nav]] # name = "Tags"