I think you should use foreman npm. Where you have to create a .env file to 
create your environment varible. 

On Thursday, 24 March 2011 21:45:52 UTC+5:30, Guy Halford-Thompson wrote:
>
> What is the best way to setup environment variables (e.g. DEVELOPMENT,
> PRODUCTION, TESTING) in node?
>
> I use different ports and database info for test/production servers
> and was wondering what the best way to make this a bit more automated
> is.
>
> Thanks
>
> -- 
> Guy Halford-Thompson - http://www.cach.me/blog
>
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/0181b8a2-5179-42b8-bffa-a8b3ec08e28d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to