Skip to content
Christopher Dunavan edited this page Apr 12, 2017 · 3 revisions

The database, log location and userdata locations will be created at startup. Here are the commands for each environment:

Production:
NODE_ENV=production node dcit
Development:
node dcit.js
Test
NODE_ENV=test node dcit

Nodemon

In any of the above, you could replace node with nodemon. I highly recommend nodemon for development and testing, it will reload the app anytime you change a .js file.

PM2

In production I recommend PM2. It will monitor and restart your processes, cluster your app and log everything. There is a PM2 config file in the root directory that should help get that going. Look in the Quick Start Guide for a PM2 setup example.

Once DCIT is running, open a browser and go to https://localhost:3000

Clone this wiki locally