I'd like to change the value of process.env.PORT, how can I do this?
process.env.PORT
I'm running Ubuntu 12.04.
For just one run (from the unix shell prompt):
$ PORT=1234 node app.js
More permanently:
$ export PORT=1234 $ node app.js
In Windows:
set PORT=1234
In Windows PowerShell:
$env:PORT = 1234
2.1m questions
2.1m answers
60 comments
57.0k users