nginx
- Install using brew install nginx
- run using the command sudo nginx
In one of the terminal run the command
PORT=3004 node server.js
PORT=3005 node server.js
curl localhost:8081/hello
We will observe a different port number everytime
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
nginx
In one of the terminal run the command
PORT=3004 node server.js
PORT=3005 node server.js
curl localhost:8081/hello
We will observe a different port number everytime