Skip to content

Commit

Permalink
now running static
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Gupta <varun.gupta1798@gmail.com>
  • Loading branch information
tech4GT committed Apr 3, 2018
1 parent f5bec15 commit 83a0a8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ app.post('/2', function (req, res) {
})
})

console.log(__dirname)
app.use('/',express.static(__dirname + '/../frontend/'))

app.use('/',express.static(__dirname + '../frontend/'))

app.listen(5000, function () {
console.log("started on port 5000")
app.listen(8080, function () {
console.log("started on port 8080")
})
var os = require('os');
var ifaces = os.networkInterfaces();
Expand Down
1 change: 0 additions & 1 deletion backend/iotUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ var board = new five.Board({
board.on('ready',function(){
led = new five.Led('GPIO7');
fan = new five.Led('P1-13');
led.on();
});
var statuses = [false, false]

Expand Down

0 comments on commit 83a0a8f

Please sign in to comment.