Fixing BUNDLE_WITHOUT on Heroku Cedar

While I was working on the lacunavinea.org web site (it's not linked as it isn't live yet), I ran into an issue with bundler on Heroku. Heroku Cedar has BUNDLE_WITHOUT hard-coded to exclude only development and test.

This is rather limiting if you want to have other groups in your Gemfile that don't get inlucded in the running app. Cucumber users will especially notice this, as the cucumber folks suggest you put the cucumber gems in the own group. I also like to put gems like heroku and ZenTest in their own group.

I went looking to see if anyone else had found a solution, and I came across this tweet by @grosser.

I thought I would give a more expanded example here, as it look me a moment to realize what he meant. Here's an example Gemfile that creates some groups. I also wrote a little helper function to make it a bit nicer looking.

Works like a charm! Thanks @grosser!

Filed under  //  #bundler   cucumber   heroku  
Posted

Heroku Adds Support for Java

This is pretty stinking awesome! With this move, the guys at heroku are proving that they mean it when they say they want to be a polygot platform. I love how the blog post does a good job of seperating the good parts of Java, the JVM and the Java ecosystem from the bad parts (namely JEE and the baggage from a corporate dominated JCP). See heroku's announcement:

http://blog.heroku.com/archives/2011/8/25/java/

Filed under  //  heroku   java  
Posted