0

我正在尝试对 heroku 进行 hexo 部署,但出现此错误:

    remote: Building source:        
remote: 
remote: -----> Failed to detect set buildpack https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/nodejs.tgz        
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure        
remote: 
remote:  !     Push failed        
remote: Verifying deploy...        
remote: 
remote: !   Push rejected to pure-caverns-85771.        
remote: 
To git@heroku.com:pure-caverns-85771.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:pure-caverns-85771.git'

我确实有package.json并且我已经安装了 hexo-deployer-heroku 插件.. 有什么想法吗?

4

1 回答 1

1

您可以尝试删除已经设置的 buildpack,这样 Heroku 会自动为您设置一个。

还要确保你package.json被推送到 Heroku。

于 2016-10-13T14:49:41.793 回答