aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-10-06 10:00:18 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-10-06 10:00:18 +0200
commit2ea63cf9f2b5739245e6b91033f9e41fea6a3971 (patch)
tree740e2fc7c0179c030f88a8fc4ebea8bc7ac8fbcb
parent6573a54c50738e455b2b0d4863498b916046a466 (diff)
Deploy new post
-rw-r--r--Makefile4
-rw-r--r--content/posts/postgres-aggregation-speed/index.md4
-rw-r--r--deploy.sh3
-rw-r--r--layouts/shortcodes/perf-chart.html2
4 files changed, 4 insertions, 9 deletions
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 -}}