Using Buildpacks

tsuru supports deploying applications via Heroku Buildpacks.

Buildpacks are useful if you’re interested in following Heroku’s best practices for building applications or if you are deploying an application that already runs on Heroku.

tsuru uses Buildstep Docker image to make deploy using buildpacks possible.

Creating an Application

What do you need is create an application using buildpack platform:

$ tsuru app-create myapp buildpack

Deploying your Application

Use git push master to deploy your application.

$ git push <REMOTE-URL> master

Using a Custom Buildpack

To use a custom buildpack, set the BUILDPACK_URL environment variable.

$ tsuru env-set BUILDPACK_URL=https://github.com/dpiddy/heroku-buildpack-ruby-minimal

On your next git push, the custom buildpack will be used.

Creating your own Buildpack

You can follow this Heroku documentation to learn how to create your own Buildpack: https://devcenter.heroku.com/articles/buildpack-api.