When running my Express.js Node app on AppFog's web server, app.get('env') is 'development'

32 views
Skip to first unread message

Šime Vidas

unread,
Jan 8, 2014, 8:20:29 PM1/8/14
to appfog...@googlegroups.com
When running my Express.js Node app on AppFog's web server, app.get('env') is 'development'. Shouldn't it be set to 'production' automatically? What would be the recommended way to set it to 'production' manually?

nodejsu

unread,
Mar 31, 2014, 7:34:18 PM3/31/14
to appfog...@googlegroups.com
click on "Env Variables" tab (below Domain Names), and add a new pair:

name: NODE_ENV
value = production
Reply all
Reply to author
Forward
0 new messages