Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command line argument for server port with default 8081 #18

Open
vanevery opened this issue Oct 21, 2015 · 1 comment
Open

Add command line argument for server port with default 8081 #18

vanevery opened this issue Oct 21, 2015 · 1 comment

Comments

@vanevery
Copy link
Member

node startserver.js 8081
./startserver.js 8082
etc..

@vanevery
Copy link
Member Author

process.argv.forEach(function (val, index, array) {
console.log(index + ': ' + val);
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant