将带有Yarn的PHP项目部署到Heroku [英] Deploy PHP project with Yarn to Heroku

查看:94
本文介绍了将带有Yarn的PHP项目部署到Heroku的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在本地我只运行composer installyarn install,但是当推送到Heroku时,只会安装composer依赖项,而不会安装Yarn组件.我似乎找不到Heroku触发Yarn组件安装的方法.

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.

推荐答案

我只需要在Heroku应用程序的设置页面中添加heroku/nodejs buildpack,以及已经存在的heroku/php.然后,下一次部署还安装了纱线组件.

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.

这篇关于将带有Yarn的PHP项目部署到Heroku的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆