Skip to content

Commit

Permalink
replace state for loki fix config path
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerswin Pineda authored and Gerswin Pineda committed Jun 24, 2018
1 parent 5fe3493 commit 85803ee
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sonoff_server/rootfs/usr/bin/sonoff/sonoff.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ var server = express();
var bodyParser = require('body-parser')
var http = require('http');

// const configFile = '/config/sonoff.config.json'
// const deviceFile = '/config/sonoff.devices.json'
// const devicesHaFile = '/config/sonoff.ha.json'
const configFile = '/config/sonoff.config.json'
const deviceFile = '/config/sonoff.devices.json'
const devicesHaFile = '/config/sonoff.ha.json'

const configFile = './sonoff.config.json'
const deviceFile = './sonoff.devices.json'
const devicesHaFile = './sonoff.ha.json'
// const configFile = './sonoff.config.json'
// const deviceFile = './sonoff.devices.json'
// const devicesHaFile = './sonoff.ha.json'
var config;
try {
config = JSON.parse(fs.readFileSync(path.resolve(__dirname, configFile)));
Expand Down

0 comments on commit 85803ee

Please sign in to comment.