Deploy PHP project with Yarn to Heroku

2019-07-07 17:33发布

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.

1条回答
对你真心纯属浪费
2楼-- · 2019-07-07 18:16

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.

查看更多
登录 后发表回答