diff --git a/resources/VERSION b/resources/VERSION index c946ee6..1180819 100644 --- a/resources/VERSION +++ b/resources/VERSION @@ -1 +1 @@ -0.1.6 +0.1.7 diff --git a/src/nextjournal/garden_cli.clj b/src/nextjournal/garden_cli.clj index 11ade5b..2458ea2 100755 --- a/src/nextjournal/garden_cli.clj +++ b/src/nextjournal/garden_cli.clj @@ -280,7 +280,11 @@ (call-api (assoc opts :command "logs" :as :stream))) (defn restart [{:keys [opts]}] - (call-api (assoc opts :command "restart" :as :stream))) + (let [working-dir (path-from-git-root-parent)] + (call-api (-> opts + (assoc :command "restart" :as :stream) + (cond-> working-dir + (assoc :working-dir working-dir)))))) (defn stop [m] (let [{:keys [ok message]} (call-api (merge {:command "stop"} (:opts m)))]