SteveS (8) [Avatar] Offline
#1
The recommended command line to start the server in production mode for Windows is given as

SET NODE_ENV=production node app.js

However, this actually sets the NODE_ENV variable to the string "production node app.js". The correct command line was provided by PeterWebtrax back in 2012:

SET NODE_ENV=production && node app.js

That is, the intervening && that separates the individual commands is not displayed in the published text (possibly due to a missing escape sequence?).