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

What port to run? #17

Open
johnsmeeth opened this issue Jul 14, 2014 · 1 comment
Open

What port to run? #17

johnsmeeth opened this issue Jul 14, 2014 · 1 comment

Comments

@johnsmeeth
Copy link

Hi topley. i just run nodeshop but i don't know what port are using?
i run command node shop.js

@dz1984
Copy link

dz1984 commented Jul 16, 2014

You can type this command:

$ PORT=3000 node shop

or modify the listen port code:

// Listen for requests
var port = process.env.PORT||'3000';
app.listen(port);

console.log('NodeShop v' + info.version + ' listening on port ' + port);

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

No branches or pull requests

2 participants