I'm having odd issues deploying my webapp.
/bin/www has port 5002 specified but I get a 404 without specifying port in browser or curl, but a timeout if I include it.
Oddly when running it in pm2 the out log file contains this at the top:
email@example.com start /home/ec2-user/frontend
node ./bin/www --port=5000
Which suggests pm2 is starting it on the wrong port for some reason but I get the same problem running it manually with:
node ./bin/www --port 5002
netstat shows node listening on port 5002 and the nginx config has the right port number and looks correct. I can run it on my local Windows machine without issues, anyone have any ideas?