guandan.dev

guandan.dev

https://git.tonybtw.com/guandan.dev.git git://git.tonybtw.com/guandan.dev.git

Added deploy to justfile

Commit
7ad0c9ec8973e1ea69640bcbb6bc15f2181c1815
Parent
8d28728
Author
tonybanters <tonyoutoften@gmail.com>
Date
2026-01-28 05:06:16

Diff

diff --git a/justfile b/justfile
index 999c87b..ff2af75 100644
--- a/justfile
+++ b/justfile
@@ -20,3 +20,11 @@ build:
 
 install:
     cd client && npm install
+
+deploy:
+    #!/usr/bin/env bash
+    cd /www/sites/guandanbtw
+    sudo git fetch
+    sudo git merge origin/master
+    just build
+    sudo systemctl restart guandanbtw