I recently deployed 2 different apps on free Heroku's dynos.
One is an API and the other one is an admin panel.Both are working with NodeJS. My admin panel needs to make calls on to this api.
Everything is working fine when I'm launching those apps on localhost and on different ports. But when I deploy them to Heroku, both apps are being shut down by Heroku with the same error saying: "Stopping all processes with SIGTERM" and "process exited with status 143"
Here are the error messages I got in the Heroku logs: Heroku logs
I tried to use the CORS package to the two apps, but the issue didn't change. Some help or explanation would be appreciated. Thanks for your time !emphasized text
this is due to inactivity, when there is a request on any endpoint heroku raises the dyno again
It's worth checking if this is expected behavior on the free dyno. I had one set up and switching to Hobby dyno fixed the issue. heroku node app exits after idling
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With