[英]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.