boot-clj / boot

Build tooling for Clojure.
https://boot-clj.github.io/
Eclipse Public License 1.0
1.75k stars 182 forks source link

Boot build stalls on heroku #170

Closed taylorSando closed 9 years ago

taylorSando commented 9 years ago

Not sure if this should go here, or with boot-cljs, but I'm having a problem getting boot to play nicely with heroku.

https://github.com/taylorSando/boot-heroku-test

I made a custom buildpack, the one that you guys list in the wiki projects doesn't seem to work.

It tries to build, but it gets stuck on compiling main.js

Basically bin/build causes boot package to run

Then the Procfile should run the created jar.

alandipert commented 9 years ago

Happy to let this hang out here, but you may consider posting also to http://hoplon.discoursehosting.net/ which probably gets more attention.

In the meantime I'll try to reproduce, it would be nice to have a working Heroku setup for sure.

taylorSando commented 9 years ago

You should be able to use https://github.com/taylorSando/boot-heroku-test

It's basically the om/cljx boot example. I can run it locally by doing boot package and then running the resulting jar file.

Make sure you use my heroku buildpack, because the other one doesn't seem to work properly.

micha commented 9 years ago

Looks like it might be a memory issue. The buildpack seems to be specifying -Xmx400M, which isn't enough to run the google closure compiler with advanced optimizations, I don't think.

micha commented 9 years ago

Also see pandeiro/heroku-buildpack-boot#4 for a way to pull the latest version of boot.sh automatically (issues are disabled for taylorSando/boot-heroku-test or I'd reference it there).

micha commented 9 years ago

Has this been resolved? Can we close the issue?