A Leiningen plugin that uploads your project jar to IronWorker.
Put the dependency in the
:plugins vector of either your project.clj or your
From your project directory, run:
$ lein worker
- Generate a
project-name.workerfile in target based on Iron.io's Writing Workers in Java
- Generate an uberjar in the target directory using
- Upload the jar by running
iron_worker upload target/project-name.worker
Individual subtasks also exist.
$ lein help worker Default behavior for `lein worker` will prepare a workerfile and uberjar then upload it to IronWorker. Use available subtasks for more fine-grained control. Subtasks available: run Run remote worker on IronWorker prepare Preapre a workerfile and uberjar upload Upload uberjar to IronWorker run-local Run the worker locally Run `lein help worker $SUBTASK` for subtask details. Arguments: ([run] [prepare] [upload] [run-local])
N.B. You must run
lein worker preparebefore trying out your worker with
lein worker run-localevery time you make changes to your code.
lein worker run-localruns the uberjar in your target directory. Because of the slowness of this workflow, it's better to use your normal testing or REPL-driven workflow and only verify with
lein worker run-localbefore uploading to IronWorker and running it remotely.
- Run the worker remotely
Copyright © 2014 Trevor Hartman
Distributed under the Eclipse Public License version 1.0.