From a3388d3c3acd7ed4ee441c4e00704e1b7476963a Mon Sep 17 00:00:00 2001 From: Sullivan SENECHAL Date: Tue, 10 Jun 2014 10:02:50 +0200 Subject: [PATCH] Specify NODE_ENV=production in documentation Just add some examples with production environment. Could be useful for users who don't have experience with node.js! :) --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index b1c9cfa48..f51d830a6 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,12 @@ Lastly, start the application with: $ node app ``` +If you want a production environment: + +```sh +$ NODE_ENV=production node app +``` + Upgrading From a 2.0 Install ---------------------------- @@ -125,6 +131,8 @@ $ node monitor & $ node app ``` +Don't forget to set `NODE_ENV=production` if you want to run the app in production environment. + You can also run the monitor in a different server. This second server must be able to reach the API of the webapp server: set the `monitor.apiUrl` setting accordingly in the `production.yaml` file of the monitor server. Monitoring From Various Locations