【发布时间】:2020-12-05 03:58:06
【问题描述】:
这是我的服务器文件夹:https://github.com/Yokubjon-J/react-chat-testSuite/tree/master/server。每当我运行“git push heroku master”时,我都会收到以下错误:
Total 866 (delta 199), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: ! No default language could be detected for this app.
remote: HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.
remote: See https://devcenter.heroku.com/articles/buildpacks
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to my-first-react-chat-app.
remote:
To https://git.heroku.com/my-first-react-chat-app.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/my-first-react-chat-app.git'
我浏览了几个 stackoverflow 答案都无济于事。 有什么建议么? 我设置了 buildpacks,在 procfile 中输入了“web: node index.js”,但没有任何帮助
【问题讨论】:
标签: heroku