[英]Heroku node.js app not compatible with buildpack
我今天尝试将不和谐的bot上传到heroku,但是每次使用git push heroku master
,都会出现以下错误:
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> App not compatible with buildpack: https://codon-
buildpacks.s3.amazonaws.com/buildpacks/heroku/nodejs.tg
remote: More info:
https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to sjak-bot.
remote:
To https://git.heroku.com/sjak-bot.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/sjak-bot.git'
我已经做过heroku buildpacks:set heroku/nodejs
,将node.js和npm版本添加到package.json中,但是仍然会出现相同的错误。
该机器人是用javascript btw编写的
您应该将index.js
文件添加到主目录,在我的情况下,我只是添加了index.php
文件
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.