Deploy PHP project with Yarn to Heroku

我只是一个虾纸丫 提交于 2019-12-12 21:54:20

问题


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:


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.



来源:https://stackoverflow.com/questions/48086897/deploy-php-project-with-yarn-to-heroku

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!