Skip to content

Commit

Permalink
Update alive.js
Browse files Browse the repository at this point in the history
  • Loading branch information
DomathID authored Jul 1, 2022
1 parent 77873b0 commit e0a1401
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions alive.js
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit e0a1401

Please sign in to comment.