A Boot and Leiningen template for creating new Boot-based Hoplon projects with Castra and deploying them to Heroku.
$ boot -d boot/new new -t hoplon-castra -n my-project-nakeTo deploy a war file to Heroku:
$ boot make-war
(first time only) $ heroku plugins:install https://github.com/heroku/heroku-deploy
$ heroku deploy:war --war target/project.war --app <your-app-name>To deploy a standalone jar, add the following to your build.boot file:
(deftask build-jar
"Builds a standalone jar."
[]
(comp (aot :namespace #{'app.main})
(hoplon)
(cljs :optimizations :advanced)
(prerender)
(uber)
(jar :main 'app.main)
(sift :include #{#"\.jar$"})
(target :dir #{"target"})))then
boot build-jar
heroku deploy:jar --jar target/project.jar --app <your-app-name>Note: to deploy to Clojars you must be a member of the
hoplon-castragroup on Clojars. Ask @alandipert for access if you need it.
- Update
+version+inbuild.boot. Add the change and push to Github. boot build-jar push-releaseto push the releas to Clojars. This also creates a tag for the release.git push --tagsto push the new release tag up to Github.
Copyright © 2013-2016 Micha Niskin, Alan Dipert and Marcelo Nomoto
Distributed under the Eclipse Public License, the same as Clojure.