Skip to content

Boot task to continuously run a shell command, and restart it when files change.

License

Notifications You must be signed in to change notification settings

mathias/boot-restart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

boot-restart

Boot task to continuously run a shell command, and restart it when files change. Good for running non-Clojure servers and when your files are compiled, or any time you need a daemonized command run and restarted in your boot project.

Clojars Project

Usage

Include the project:

;; in build.boot
(set-env!
  :dependencies '[mathias/boot-restart "0.0.2"])

Terminal

boot-restart is meant to be used with your other boot tasks. For example:

boot watch compile restart --command "node app.js"

build.boot file in your project

In your build.boot you could call it like this:

(deftask run
  []
  (comp (watch) (restart :command "node app.js")))

Options

See the boot project for more information on how to use these.

[c command COMMAND str "Command line to run continuously. Required."]

License

Copyright Matt Gauger 2015.

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

Boot task to continuously run a shell command, and restart it when files change.

Resources

License

Stars

Watchers

Forks

Packages

No packages published