Thumbor for Heroku

by Br3nda

GitHub Readme.md

An unofficial Heroku-ready Thumbor install with WebP support.

Installation

Just press this button:

Deploy

Or, follow these steps:

  1. Clone repo
  2. heroku create
  3. heroku config:set BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi
  4. heroku config:set THUMBOR_SECURITY_KEY=123456 (you should probably choose a better key)
  5. git push heroku master (the first deploy will take about 10 minutes)
  6. Done!

Run in localhost (Docker compose)

Run:

$ cp .env.dist .env

Edit your .env file changing environment variables. Now run:

$ docker-compose build
$ docker-compose up

Now you can open in your localhost: http://localhost:8000/unsafe/300x200/http://lorempixel.com/500/500.

Notes

OpenCV isn't included in this installation because of Heroku's compiled slug size limits, so Thumbor's smart cropping isn't supported at this time.