Skip to content

Commit

Permalink
Restructure
Browse files Browse the repository at this point in the history
Renamed nft rules for file list layout benefits.
Updated references to this.

Updated index.js
Fixed error with readfile of changes to rules.
  • Loading branch information
Dustyn Blackmore committed Apr 18, 2018
1 parent f6d3197 commit 5dd3532
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let ruleWatch = fs.watch('./src/config', () => { setTimeout(loadRules, 500) });

function loadRules (err, filename) {
console.log('Detected ' + filename + ' change. Ingesting.');
fs.readFile('./config/rules.json', 'utf8', (err, data) => {
fs.readFile('./src/config/rules.json', 'utf8', (err, data) => {
if (err) throw err;
let newRules = JSON.parse(data);
rules = newRules.rules;
Expand Down Expand Up @@ -162,7 +162,7 @@ function bindQueueHandlers () {
}

nft.flush().then(
(resolved) => nft.inject('./src/config/base.rules'),
(resolved) => nft.inject('./src/config/rules-base.nft'),
(reject) => console.log('failed to flush rules')
).then(
(resolved) => setupInterfaces(),
Expand Down

0 comments on commit 5dd3532

Please sign in to comment.