'Heroku only works if my local host server is working

my heroku deployment only works when my local host is running.

I havent checked if it works on other computers - but it doesnt work on my phone for example.

So far I was only able to run it on my PC - it works on both localhost and the site deployed to Heroku (link here to it).

When I had the server down ( node index.js wasnt running ), neither heroku nor the localhost servers were working.

Then when I turned it back on - both localhost and heroku serves started working. 👍

What could be causing this ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source