herokuheroku-nodejs

I'm getting an error when attempting to set up nginx on Heroku


I'm getting an error when my dyno attempts to start nginx, on both heroku-16 and heroku-18:

bin/start-nginx: No such file or directory

I used the heroku-buildpack-multi buildpack.

.buildpacks file:

"https://github.com/heroku/heroku-buildpack-nginx.git" "https://github.com/heroku/heroku-buildpack-nodejs.git"

Procfile:

web: bin/start-nginx npm start

Is there something I'm missing?


Solution

  • It seems that the latest versions of Heroku CLI support multiple buildpacks natively, and the .buildpacks file is not used, so all I had to do was use the command (from here): heroku buildpacks:add --index 1 https://github.com/heroku/heroku-buildpack-nginx.git to add the nginx buildpack.