DEV Community

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

Collapse
 
so2liu profile image
so2liu

Hi there, thank you for your guide. I have followed to the end and met a problem that build success but deployment failed.

...
psycopg2.OperationalError: FATAL:  remaining connection slots are reserved for non-replication superuser connections

The above exception was the direct cause of the following exception:

...

django.db.utils.OperationalError: FATAL:  remaining connection slots are reserved for non-replication superuser connections

Stackflow said this is something about connection number. But it's a new app and should not have several connections. Any clue? Thank you very much!

Collapse
 
so2liu profile image
so2liu

I solved this problem by deleting this line in Procfile:
release: python manage.py migrate
Following this stackflow Link.
Of course I don't know what happened. I would appreciate it if you explain somehow.