I am facing an issue that I am not able to solve alone. I am running 2 node.js server instances on my linux server, but the one running on port 4000 is running well, but the one running on the port 6000 is not working. See below the example: Port 4000: Port 6000: I checked my port on my server
Tag: express
How to redirect port for React production
I am trying to setup both Express.js and React.js apps on the same Ubuntu server. This is a VPS which runs Plesk Onyx where we have a lot of virtual hosts that run over port 80. To run them continuosly I have installed and ran forever, then these apps starts on ports 3000and 5000 (for instance). I executed commands: Neither
How to fix MongoError: unsupporter server version?
I am trying to run a Node.js server with MongoDB. I followed the tutorials closely. Here is my app.js file: ` When I try to run it, however, I get the following error: How can I fix this? My package.json file says I am using version ^3.0.0-rc0. I cant seem to find a solution anywhere online. Answer Upgrade to the
How to do a GET on my localhost node server using curl?
I am trying to GET a page from my localhost server using the command line on linux. I have my node’s REST endpoint like this: And going here on my browser works perfectly: However, I can’t figure out how to use CURL to do the same GET request via the command line. Here is what I have tried: curl -H