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.
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1411">#c1411</a>)</em></sub></div>