2017-08-14 101 views
2

今天我試着上傳我的不和諧殭屍Heroku的兼容,但每次我用git push heroku master它會給我下面的錯誤:的Heroku的Node.js應用程序不buildpack

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,添加的節點.js和npm版本到package.json,但它仍然給出相同的錯誤。

殭屍是用JavaScript編寫的BTW

+1

您是否製作了Procfile? –

+0

並且是你的倉庫根目錄下的'package.json'文件? – Chris

+0

是的我有一個Procfile,這是它內部的代碼:'web:node index.js',是的,package.json位於存儲庫的根目錄。 – Sjaak

回答

0

您應該添加index.js文件到你的主目錄下,在我的情況我剛纔添加index.php文件

相關問題