Skip to content

Instantly share code, notes, and snippets.

@stephencweiss
Created December 10, 2018 15:58
Show Gist options
  • Save stephencweiss/547a744e50c04f53e903e68427bae3db to your computer and use it in GitHub Desktop.
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]
// 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