[英]NodeJS app not being deployed on heroku
I am trying to deploy an app on Heroku and getting the following error:我正在尝试在 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:
My repo is at https://github.com/DKSukhani/React_Node_CustomerFeedback_project我的仓库位于https://github.com/DKSukhani/React_Node_CustomerFeedback_project
Please help.请帮忙。 At heroku, I have specified the buildpack as nodejs.
在 heroku,我已将 buildpack 指定为 nodejs。
You can try to move your package.json
file to root of your directory.您可以尝试将
package.json
文件移动到目录的根目录。 In your example server
directory is not nessecary you can reconfigure your directory structure as something like this...在您的示例
server
目录中,您可以将目录结构重新配置为这样的...
-/
/views
main_view.hbs
/app
some_logic.js
index.js
package.json
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.