On Dec 1, 2013, at 11:14 PM, Varun Krishna Parthasarathy 
<[email protected]> wrote:
> Hi everyone
> what is process.env.port? What does it do? 
> what does this mean
> process.env.Port || 3000.
> 


“process.env” is your access to the shell environment. On a *nix system, 
process.env.X provides you the value of the environment variable X, if it is 
set. In the line of code above, it appears that the value for the port the 
server is to use is determined by what the user has set in the “Port” 
environment variable, with a fallback value of 3000. There is no special 
meaning to process.env.Port, AFAIK, in Node or Express.

        —ravi

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to