Skip to content

Instantly share code, notes, and snippets.

@c0deWranglr
c0deWranglr / Consul.scala
Last active October 5, 2017 16:49
Registers an sbt project with consul at a specified port
/*
To install, simple put this file in the global sbt plugins directory.
For sbt 0.13 that would be ~/.sbt/0.13/plugins/
To use, just call sbt "consul -p <port>" to register any project with consul at <port>
or sbt "consul -d" to deregister this project from consul
or sbt "consul -x" to deregister all sbt projects from consul
To save the port for automatic loading, run sbt "consul -p <port> -s".
*/