hardened configuration

- moved env rewrite + dotenv code to single location
- fixed bug with system flag on user
This commit is contained in:
Wyatt Johnson
2018-01-05 16:06:36 -07:00
parent 6260339508
commit c07ec23a20
18 changed files with 70 additions and 52 deletions
+1 -1
View File
@@ -1,10 +1,10 @@
#!/usr/bin/env node
const util = require('./util');
const program = require('commander');
const inquirer = require('inquirer');
const mongoose = require('../services/mongoose');
const SettingsService = require('../services/settings');
const util = require('./util');
// Register the shutdown criteria.
util.onshutdown([() => mongoose.disconnect()]);