From 2ea63cf9f2b5739245e6b91033f9e41fea6a3971 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 6 Oct 2025 10:00:18 +0200 Subject: Deploy new post --- Makefile | 4 +--- content/posts/postgres-aggregation-speed/index.md | 4 ++-- deploy.sh | 3 --- layouts/shortcodes/perf-chart.html | 2 +- 4 files changed, 4 insertions(+), 9 deletions(-) delete mode 100644 deploy.sh diff --git a/Makefile b/Makefile index 95389e9..64189a3 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,6 @@ deploy: hugo - rsync -avz --delete public/ ubuntu@feed.kagamino.dev:~/kagamino_blog/ - rsync -avz deploy.sh ubuntu@feed.kagamino.dev:~/deploy.sh - ssh ubuntu@feed.kagamino.dev 'sudo bash deploy.sh' + rsync --rsync-path="sudo rsync" -avz --delete public/ ubuntu@feed.kagamino.dev:/var/www/kagamino_blog/ dev: hugo server -D diff --git a/content/posts/postgres-aggregation-speed/index.md b/content/posts/postgres-aggregation-speed/index.md index 36d8fac..4c0b760 100644 --- a/content/posts/postgres-aggregation-speed/index.md +++ b/content/posts/postgres-aggregation-speed/index.md @@ -1,7 +1,7 @@ --- title: PostgreSQL aggregation processing speed -draft: true -date: 2025-09-29 +draft: false +date: 2025-10-06 lastmod: description: Comparison of aggregation function speed, on the database and in a host language categories: diff --git a/deploy.sh b/deploy.sh deleted file mode 100644 index 19430f2..0000000 --- a/deploy.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -sudo rsync -avz --delete kagamino_blog/ /var/www/kagamino_blog/ -sudo chown -R www-data:www-data /var/www/kagamino_blog diff --git a/layouts/shortcodes/perf-chart.html b/layouts/shortcodes/perf-chart.html index 8c1734a..c5b30aa 100644 --- a/layouts/shortcodes/perf-chart.html +++ b/layouts/shortcodes/perf-chart.html @@ -20,7 +20,7 @@ {{- $parts := split . ":" -}} {{- if ge (len $parts) 3 -}} {{- $label := index $parts 0 -}} - {{- $preset := index $parts 1 -}} + {{- $colorName := index $parts 1 -}} {{- $valuesStr := index $parts 2 -}} {{- $values := split $valuesStr "," -}} {{- $colorRgb := index $colors $colorName -}} -- cgit v1.3