Created
December 10, 2018 15:58
-
-
Save stephencweiss/547a744e50c04f53e903e68427bae3db to your computer and use it in GitHub Desktop.
A simple example of passing multiple ports into a node process to be captured as process.argv[2]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sh | |
# In one terminal window | |
$ node server/index.js 8082 | |
listening on port 8082 | |
# In a different terminal window | |
$ node server/index.js 8083 | |
listening on port 8083 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment