Closed ghost-of-the-mind closed 2 years ago
This repo is not a Heroku buildpack. It relies on Heroku's Node buildpack.
This is an example app intended to share a solution for how to setup a "two app build" (backend Node app & frontend React app) with create-react-app.
Sure, which is why I tried to use it in tandem with the Node buildpack as can be seen in my build log...
-----> Using buildpacks:
1. heroku/nodejs
2. https://github.com/mars/heroku-cra-node.git
I am just curious as to what could be the referenced missing file in the build log?
-----> Build succeeded!
-----> App not compatible with buildpack: https://github.com/mars/heroku-cra-node.git
bash: /tmp/codon/tmp/buildpacks/ef5bff07a76bde2742e6ba624c91f17c85f656de/bin/detect: No such file or directory
As it appears to me, I should not be missing any files, based on my folder structure, yet, the build log implies that I am missing something and thus my app is not compatible with this repo.
Or are you saying that I do not need to designate this repo as a buildpack and only use the node.js buildpack + use your provided folder and file structure to deploy the app and that should be enough?
You need to heroku buildpacks:remove https://github.com/mars/heroku-cra-node.git
.
The bin/detect
script does not exist, because this repo is not a buildpack.
This repo is an example app with a detailed README.
The README explains exactly what this is and how to use it. Please read it 📓🙏😇
I recently realised that since I have a custom Node.js server in my app, that I should use the mars/heroku-cra-node buildpack instead of the build-react-app version that is meant for static React.js apps.
I tried my best in following the documentation of this buildpack, but after deploying my app to Heroku, I received the following result:
Based on the build log, my app is not compatible with this buildpack, but I cant figure out what it is missing. What is this "/tmp/codon/tmp/buildpacks/ef5bff07a76bde2742e6ba624c91f17c85f656de/bin/detect" file?