Update src/run.clj

This commit is contained in:
Adam Jeniski 2025-09-10 11:08:04 -09:00
parent 78d5822544
commit fbb2f7a05d

View File

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