user> (require '[my.website.core :as site])
user> (require '[appengine-magic.core :as gae])
user> (gae/serve site/my-website-app)
And saving changes to files should then be reflected when refreshing
your browser.
- Mark
Several months ago, I applied a patch to appengine-magic to enable
VimClojure support (https://github.com/gcv/appengine-magic/pull/6),
although I don't know enough about Vim to actually try it. I assumed
that it works. If it doesn't, I'll need some step-by-step instructions
to get Vim+VimClojure running before I can debug the problem (I know
enough vi to do basic editing, but that's about it).
;; this does load all code in the repl, and starts the appengine-magic
dev server
user> (require '[my.website.app_servlet :as servlet])
user> (require '[appengine-magic.core :as gae])
user> (gae/serve servlet/my-website-app)
;; ... change some code, then reload the namespace in repl ...
user> (require '[my.updated.ns] :reload)
;; ... worst case, reload everything in repl ...
user> (require '[myapp.app_servlet :as servlet] :reload-all)
I would think that this should work, and allow the changes to then be
visible in the browser.
- Mark
Keep an eye on the standard output stream from Nailgun, VimClojure,
and the REPL, because I'm not sure where the working thread will end
up directing its output. The invocation to the serve function will
start Jetty on port 8080, and this prints some diagnostic output.
Please let us know how this goes; I'm pretty interested in making sure
appengine-magic works in non-SLIME Clojure environments.