loading...

Discussion on: Deploy Your Django + React.js app to Heroku

Collapse
rmiyazaki6499 profile image
Ryuichi Miyazaki

[SOMEWHAT SOLVED] Hi Shakib!

Great post! It was exactly what we were looking for given our tech stack.
Unfortunately I am having issues with building the project and I'm not sure what I'm doing wrong.

I get this error:
remote: -----> Build succeeded!
remote: ! Unmet dependencies don't fail yarn install but may cause runtime issues
remote: github.com/npm/npm/issues/7494
remote:
remote: -----> App not compatible with buildpack: buildpack-registry.s3.amazonaws.co...
remote: More info: devcenter.heroku.com/articles/buil...
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to r-d-test.
remote:

If anyone can give any hints to what I might be doing wrong that would be great.
I followed the directions down to the key and checked the current comment suggestions as well...

The Procfile and requirements.txt are correctly in the root of the project as well...

It looks like my react part of the project works fine but something wrong with the python buildpack...

Collapse
rmiyazaki6499 profile image
Ryuichi Miyazaki

[UPDATE]
So I discovered that we needed to update the .wsgi file which I found in the source code but clearly not a part of the tutorial. I think it would be helpful to add that section after the testing of the app if it works locally.

[EDIT]
Sorry, so when I ran the deployment when I did this I did not realize my partner had changed it.
The original settings should work.

Collapse
joeszaf profile image
Joe Szaf

Ran into the same problem.

It was fixed when I actually committed my work before pushing to master.

Specifically, I ran the following before "$ git push heroku master" :

git add .
git commit -m "initial commit"

Collapse
lgerhardt45 profile image
Lukas Gerhardt

Hey Ryuichi,
I ran into the same error you were having. Can you please share what fixed the problems with the python buildpack in the wsgi.py file?

Collapse
shakib609 profile image
Shakib Hossain Author

Sorry for the late reply. Can you share with me what modifications you had to make to the wsgi.py file? In my case I didn't have to modify it, that's why I did not include it in the tutorial.

Thread Thread
rmiyazaki6499 profile image
Ryuichi Miyazaki

Sorry for the late reply.
I had finished the project and then COVID happened.

I looked back and actually the default wsgi.py settings were correct.
My partner had changed it without telling me...