How to change default port for live server?

amazon-alexa

#1

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


#2

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;

#3

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