I have deployed my dapp front end and backend on Digital Ocean. On running the server.js I am getting below error
(node:30490) UnhandledPromiseRejectionWarning: Error: Invalid JSON RPC response: ""
Below settings in my server.js code use to work fine on my local Ganache,
const provider = new Web3.providers.HttpProvider("http://localhost:8545");
I suspect I need to make changes in web3 provider to make it compatible to run on DigitalOcean but cannot figure out them, please help...