Static GitHub Issues

[1581] Application is inaccessible from the browser when deployed to amazon

prev: Question: Dynamic import.
next: question: How to add an external JS before the end of body tag , before the app template js, after html?

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>