NodeJS应用程序未部署在heroku上

时间:2017-10-22 00:11:58

标签: node.js heroku

我正在尝试在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。

1 个答案:

答案 0 :(得分:1)

您可以尝试将package.json文件移动到目录的根目录。在您的示例中,server目录不是nessecary,您可以将目录结构重新配置为类似这样的内容......

-/
  /views
    main_view.hbs
  /app
    some_logic.js
  index.js
  package.json