Skip to content

Create an app that requires an apt get package (DEPRECATED)

Pascal Friederich edited this page Jan 19, 2016 · 1 revision

This example shows how you can create a Rails app that requires an apt-get package.

1. Clone the rails-hello-world example

git clone git@github.com:experimental-platform/rails-hello-world.git
cd rails-hello-world

2. Create a .buildpacks file with content:

https://github.com/ddollar/heroku-buildpack-apt
https://github.com/heroku/heroku-buildpack-ruby

If you don't want Ruby/Rails then look for the right repository here

3. Define the apt packages you need in a file called Aptfile

imagemagick
lshw

4. Add git remote and deploy

git remote add platform ssh://dokku@<your-platform>.local:8022/rails-apt-test
git push platform master

The apt packages are now available to your rails app.