Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Add instructions for disabling stack traces #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,20 @@ litecore-node install https://github.com/yourname/helloworld

This will create a directory with configuration files for your node and install the necessary dependencies. For more information about (and developing) services, please see the [Service Documentation](docs/services.md).

## Running in production
Express by default runs in a development mode that exposes stack traces for easy debugging. When running in production make sure to set the environment appropriately.

To do this, set an environment variable
```
export NODE_ENV=production
```

To make this setting permament make sure the environment variable persists by adding it to a login script. For Bash run:
```bash
echo "export NODE_ENV=production" >> ~/.bashrc
source ~/.bashrc
```

## Add-on Services

There are several add-on services available to extend the functionality of Bitcore:
Expand Down