I am trying to deploy an app on Heroku and getting the following error:
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
Please help. At heroku, I have specified the buildpack as nodejs.
You can try to move your package.json
file to root of your directory. In your example server
directory is not nessecary you can reconfigure your directory structure as something like this...
-/
/views
main_view.hbs
/app
some_logic.js
index.js
package.json
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.