问题出在他们的nodejs
buildpack中。我已将修复请求发送给Heroku,但我不知道他们是否或何时响应。幸运的是,有一种使用非常详尽的方法来使用自定义buildpack,它将使您能够解决此问题。我已经分叉了Heroku的nodejs
buildpack并解决了这个问题-在这里可用:
https://github.com/chrisleishman/heroku-buildpack-
nodejs/tree/git_fix
要使用此功能,最好是创建自己的https://github.com/heroku/heroku-buildpack-
nodejs的github分支,然后合并到我的
chrisleishman/git_fix分支中。例如(分叉后):
git clone [email protected]:@YOUR-GITHUB-NAME@/heroku-buildpack-nodejs.gitcd heroku-buildpack-nodejsgit remote add chrisleishman git://github.com/chrisleishman/heroku-buildpack-nodejs.gitgit fetch chrisleishmangit merge chrisleishman/git_fixgit push
然后,您可以将
BUILDPACK_URLconfig变量添加到您的heroku应用中。例如
heroku config:add BUILDPACK_URL="git://github.com/@YOUR-GITHUB-NAME@/heroku-buildpack-nodejs.git
然后,对heroku的下一次推送应使用包含修复程序的自定义buildpack。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)