I am reading about Deploying to EC2. The final step looks like this, where I put the bundle folder outside of my meteor project
PORT=80 MONGO_URL=mongodb://localhost:27017/sidebar
ROOT_URL=http://ec2-23-20-113-59.compute-1.amazonaws.com/
sudo node ../bundle/main.js
where I replace the ROOT_URL with the public DNS shown in my AWS console. I am not quite sure what to use for MONGO_URL, so I start the meteor via the command
meteor
to see what the mongodb address meteor uses, which turns out to be
mongodb://127.0.0.1:3002/meteor
But for the node app to be able to connect to mongodb, I have to keep the meteor app running. When it seems to be working, with the console showing
listening
I try to access the site using the public DNS, but it doesn't work. So I don't know what to do next.