Update src/run.clj

This commit is contained in:
Adam Jeniski 2025-09-10 10:38:13 -09:00
parent 45308bef66
commit 25182cd72f

View File

@ -7,10 +7,10 @@
(def default-port 47331)
(defn deploy-me [{:keys [project]}]
(defn deploy-me [{:keys [project service]}]
(and
(= 0 (:exit (shell/sh "/usr/bin/git" "pull" :dir (str "/root/repos/" project))))
(= 0 (:exit (shell/sh "/usr/bin/systemctl" "restart" project)))))
(= 0 (:exit (shell/sh "/usr/bin/systemctl" "restart" service)))))
(defn app [req]
(try