
'use strict';

process.env = require('../env');

var winston = require('winston');
var lastDitch = require('../src/server/index');
lastDitch.setupTopLevelHandler();

setTimeout(function() {
  winston.info('About to crash...');
  throw new Error('this is a test error!');
}, 1000);

@@ -13,38 +13,122 @@
 ';%0A%0A
-process.env = require('../env'
+var path = require('path');%0Avar core = require('thehelp-core');%0Acore.env.merge(path.join(__dirname, '../env.json')
 );%0A%0A

use thehelp-core's env.merge()