我正在尝试在Heroku上部署应用并收到以下错误:
Building source:
remote:
remote: -----> App not compatible with buildpack: https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/nodejs.tgz
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to desolate-mountain-28031.
remote:
我的回购是https://github.com/DKSukhani/React_Node_CustomerFeedback_project
请帮忙。在heroku,我已将buildpack指定为nodejs。
答案 0 :(得分:1)
您可以尝试将package.json
文件移动到目录的根目录。在您的示例中,server
目录不是nessecary,您可以将目录结构重新配置为类似这样的内容......
-/
/views
main_view.hbs
/app
some_logic.js
index.js
package.json