Skip to content

Commit

Permalink
Merge pull request fzaninotto#242 from Soullivaneuh/patch-1
Browse files Browse the repository at this point in the history
Specify NODE_ENV=production in documentation
  • Loading branch information
fzaninotto committed Apr 16, 2015
2 parents d9cc96c + a3388d3 commit eefbf50
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 eefbf50

Please sign in to comment.