hexo部署到heroku时出错

时间:2016-10-12 20:23:14

标签: node.js heroku hexo

我正在尝试对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插件..任何想法?

1 个答案:

答案 0 :(得分:1)

您可以尝试removing the already set buildpack,因此Heroku会自动为您设置一个。

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