diff --git a/src/run.clj b/src/run.clj index a6b291a..89e14f6 100755 --- a/src/run.clj +++ b/src/run.clj @@ -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