From d549ddc04f3950f1c08b3f504810e44a0893ec09 Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Fri, 8 Jan 2021 07:01:41 +0000 Subject: [PATCH] Update usage instructions (#35) Since: * `.buildpacks` is no longer used now that Heroku supports multi-buildpack natively. * without the `--index 1`, this buildpack gets added to the end of the buildpacks list rather than the start, which for apps relying on automatic process type detection (ie: they don't have an explicit `Procfile`) prevent the main language buildpack from defining them. Fixes #28. --- README.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 86ff2f7..ec04232 100644 --- a/README.md +++ b/README.md @@ -10,14 +10,12 @@ Unlike other build packs, I never compile anything. ## Usage -Add the following to your `.buildpacks`: +Run the following from the heroku command line: ``` -https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git +heroku buildpacks:add --index 1 https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git ``` -Or run the following from the heroku command line: - -``` -heroku buildpacks:add https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git -``` +Note: This buildpack should be added before the main language buildpack (by using `--index 1`), +since the application process types are calculated from the last buildpack in the list if no +`Procfile` is specified.