diff --git a/bin/index.html b/bin/index.html new file mode 100644 index 0000000..e057b5d --- /dev/null +++ b/bin/index.html @@ -0,0 +1,48 @@ + + + + + RemoteDev + + + +
+ + + + + + diff --git a/bin/worker.js b/bin/worker.js index 0ab7cca..18aba97 100644 --- a/bin/worker.js +++ b/bin/worker.js @@ -1,3 +1,4 @@ +var path = require('path'); var express = require('express'); module.exports.run = function(worker) { @@ -7,9 +8,7 @@ module.exports.run = function(worker) { httpServer.on('request', app); app.get('/', function(req, res) { - res.send('' + - '

It works! Now point your app and monitor app to connect to this server.

' + - ''); + res.sendFile(path.join(__dirname, 'index.html')); }); app.post('/', function(req, res) { if (!req.body.data) return res.status(404).end();