Heroku Clojure Worker Sample
This is a very trivial example of creating a Heroku worker application in Clojure. It prints "Hello world!" every 3 seconds, and does not otherwise have any external interface.
- At-At (https://github.com/overtone/at-at)
- tools.logging (https://github.com/clojure/tools.logging)
- Logback (http://logback.qos.ch/)
For kicks, the logging format uses color-highlighted log formats. Betcha didn't know logback could do that, eh?
To run locally:
$ lein run -m worker.main
To run on Heroku, follow their very well-written tutorial:
Copyright © 2014 Noah Zucker (@noahlz / nzucker AT gmail DOT com)
Creative Commons CC0 1.0 Universal
Noah Zucker (nzucker at gmail.com / @noahlz)