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
@@ -4,6 +4,7 @@
* Module dependencies.
*/
const util = require('./util');
const program = require('commander');
const inquirer = require('inquirer');
const mongoose = require('../services/mongoose');
@@ -12,7 +13,6 @@ const MODERATION_OPTIONS = require('../models/enum/moderation_options');
const SettingsService = require('../services/settings');
const SetupService = require('../services/setup');
const UsersService = require('../services/users');
const util = require('./util');
const errors = require('../errors');
// Register the shutdown criteria.