How to install multiple MEAN.JS applications on Ubuntu?
I used the one-click install to create a sample MEAN.JS app in the /opt/mean directory. I have successfully started this app and configured nginx to route requests for a particular domain to it.
I am attempting to add a second MEAN.JS app to take requests for another domain. I copied /opt/mean to /opt/mean2, changed the port its listening on from 3000 to 4000, and ran grunt. But it gives me an error that port 35729 is already in use by another process.
If I reboot ubuntu, I can run grunt in either of my apps and start the app successfully. But, when I try to start the other one, I get a fatal error that port 35729 is already in use by another process.