Deploy PHP project with Yarn to Heroku
Asked Answered
S

1

2

Locally I simply run composer install and yarn install, but when pushing to Heroku only composer dependencies get installed, but not Yarn components. I can't seem to find a way for Heroku to trigger Yarn components installation.

Shippy answered 4/1, 2018 at 0:1 Comment(0)
S
3

I just needed to add the heroku/nodejs buildpack inside Heroku application's settings page, alongside the already present heroku/php. The next deploy then also installed the yarn components.

Shippy answered 4/1, 2018 at 1:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.