Application is inaccessible from the browser when deployed to amazon
[issue link]I am running a nuxt application on amazon ec2 using amazon linux image. I run the application by cross-env NODE_ENV=production node build/main.js.
It is accessible from the same host when I run curl localhost:3000
But when I use my browser it does not connect. Something is wrong with the server. I created a simple nodejs server and ran it on port 3000 which works fine, which means its not a port issue.