Heroku Buildpacks for Couchbase
Today we’re announcing the availability of the KuroBase maintained, Couchbase enabled, Heroku Buildpacks for Ruby and NodeJS. Now you can easily get your Couchbase powered Ruby or NodeJS app up and running on Heroku.
Getting native extensions and Heroku to play nice
We’re huge fans of Heroku and use their platform extensively at KuroBase. The first thing we had to do in order to get up and running on Heroku was to get the Couchbase SDK loaded up. Unfortunately this requires the libcouchbase native extension to be built, which currently isn’t supported on Heroku.
Heroku supports custom buildpacks (beyond the officially supported ones provided by Heroku themselves). With custom buildpacks, you can configure pretty much anything you’d like, and there are some pretty interesting ones out there.
Luckily, we’ve gone ahead and built custom buildpacks for Ruby and NodeJS with the required Libcouchbase libraries baked in, so now you can easily deploy your Couchbase powered app on Heroku, without having to getting into building your own.
Creating a custom Heroku buildpack is beyond the scope of this post, but this Heroku blog post is a great place to start if you’re interested.
Using a buildpack
Let’s take a look at how to use the buildpack.
Configuring buildpack on app creation
$ heroku create myapp --buildpack https://github.com/kurobase/heroku-buildpack-couchbase-ruby.git
Configuring buildpack on existing app
$ heroku config:set BUILDPACK_URL=https://github.com/kurobase/heroku-buildpack-couchbase-ruby.git -a myapp
Now you could be able to run a “git push heroku master” and your app should deploy successfully.
For more information
You can find the Ruby-Couchbase Buildpack here:
You can find the NodeJS-Couchbase Buildpack here:
Learn more about Heroku Buildpacks here:
Would you like us support your favorite language/framework? Let us know!