Skip to content
Myr

NODE_ENV=production docs, VERY IMPORTANT do this, or your app will be slow :p

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent e87d637 · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:docs/guide.md+2 added
72 unmodified lines
73To alter the environment we can set the _NODE_ENV_ environment variable, for example:7475 $ NODE_ENV=production node app.js7677This is _very_ important, as many caching mechanisms are _only enabled_ when in production.7879### Settings8081Express supports the following settings out of the box:82
839 unmodified lines