簡體   English   中英

Heroku node.js應用程序與buildpack不兼容

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

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM