Update src/run.clj
This commit is contained in:
parent
45308bef66
commit
25182cd72f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user