With my Clojure/appengine-magic project, I currently start things up like this:
lein repl
(doto 'tlog.core require in-ns)
(compile 'tlog.core)
(ae/start tlog-app)
(require 'swank.swank) (swank.swank/start-repl 4005)
tlog.core has:
(:require [appengine-magic.core :as ae])
Alternatively, instead of ae/start, I could use, I think:
(use 'ring.adapter.jetty)
(run-jetty (var tlog.core/tlog-app-handler) {:port 8080})
I'd like to put all this behind a single command.
All attempts to handle this via a -main
used with lein run
or writing a leiningen plugin failed due to namespace/path issues.
So how can it be done?