diff --git a/alive.js b/alive.js index 168a45b..2bda9d5 100644 --- a/alive.js +++ b/alive.js @@ -1,6 +1,14 @@ + + var http = require('http'); +var fs = require('fs') http.createServer(function (req, res) { - res.write("Elina Ready!"); - res.end(); +res.setHeader('Content-type', 'text/html'); + fs.readFile('./index.html', (err, html) => { + if(err) + res.write("Error"); + else + res.write(html); + res.end(); + }) }).listen(8080); -