about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authoruser <user@node5.net>2025-02-08 22:28:25 +0100
committeruser <user@node5.net>2025-02-08 22:28:25 +0100
commit0c4b85ccfce429cf294292edeceb09646a612e79 (patch)
tree225ff0887030a195e494df87a9c7e9dbba599138 /Makefile
parent460d5b13e62898134dc19e82cacce560800e43dd (diff)
Make reload_articles - Get pid from file
to ensure it's send to the right process
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ae059e6..fc9f677 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,9 @@
 blog.node5.net/static/pygmentize_code_highlight.css:
 	pygmentize -S fruity -f html -a .codehilite > output/pygmentize_code_highlight.css
 debug_server:
-	sh -c "sleep 1 && xdg-open http://127.0.0.1:5000" & venv/bin/flask --app src/blog_node5_net --debug run
+	sh -c "sleep 1 && xdg-open http://127.0.0.1:5000" & venv/bin/flask --app src/blog_node5_net --debug run & echo $$! > .flask.pid
+reload_articles:
+	cat .flask.pid | xargs kill -1
 remove_meta_data:
 	exiftool -all:all= -r ./ -overwrite_original