The Next Generation Platform is Coming - Get Ready Now!
GitHub Readme.md
This is an official Heroku buildpack to support Rails 5.2 users of Active Storage previews.
One of the marquee features of Active Storage is the ability to use “previews” of non-image attachments. Specifically you can preview PDFs and Videos. To use this feature your application needs access to system resources that know how to work with these files. By default Rails ships with support for two PDF libraries, one of which is available on Heroku, and it can use FFMPEG for Video previews, which is not available by default on Heroku.
If you want the ability to preview video files with Active Support you need to run:
heroku buildpacks:add -i 1 https://github.com/heroku/heroku-buildpack-activestorage-preview
Once you’ve done this, you need to deploy again to get the binaries. You can verify that the dependencies are installed by running which ffmpeg
on the command line. If there is no output then the operation was not performed correctly. If you see a result then the binaries are ready to be used:
heroku run bash
~$ which ffmpeg
/app/.heroku/activestorage-preview/bin/ffmpeg
Instructions for building binaries (currently only FFMPEG) can be found in build/README.md.
The main branch is stable. Each commit is a stand alone version.
Copy the snippet above into CLI.
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.