How to change default port for live server?



i have private hosting but port for node is define by other parts.
can you tell me how to change port ?


You can either set a value for a JOVO_PORT environment variable or change the port in your index.js file:

const port = process.env.JOVO_PORT || 3000;


Yes, it was an issue with cleaver hosting service.
but now with digital ocean apps , it’s resolved. thanks you