Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

NODE_ENV

//Before running your app, you can do this in console:

//OS X
export NODE_ENV=production

//Win
SET NODE_ENV=production

//PowerShell
$env:NODE_ENV="production"

//or you can run your app like this:
NODE_ENV=production node app.js

//You can also set it in your js file:
process.env.NODE_ENV = 'production';
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
6+2 =