-
Notifications
You must be signed in to change notification settings - Fork 0
2. Starting DCIT
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:
NODE_ENV=production node dcit
node dcit.js
NODE_ENV=test node dcit
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.
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