Skip to content

Commit

Permalink
Specify NODE_ENV=production in documentation
Browse files Browse the repository at this point in the history
Just add some examples with production environment.

Could be useful for users who don't have experience with node.js! :)
  • Loading branch information
soullivaneuh committed Jun 10, 2014
1 parent d9cc96c commit a3388d3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------------------------

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a3388d3

Please sign in to comment.