From b0c28a1f85a54da9feca513e886dbac7e25d5bee Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 19 Apr 2018 18:34:11 +0200 Subject: [PATCH] Create index.js --- embark/index.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 embark/index.js diff --git a/embark/index.js b/embark/index.js new file mode 100644 index 0000000000..82b54a0965 --- /dev/null +++ b/embark/index.js @@ -0,0 +1,16 @@ +var httpServer = require('http-server') +var remixd = require('remixd') + +module.exports = (embark) => { + var server = httpServer.createServer({ + root: __dirname + '/node_modules/remix-ide' + }) + + embark.registerServiceCheck('Remix IDE', (cb) => { + return cb({name: 'Remix IDE (localhost:8080)', status: 'on'}) + }) + + server.listen(8080, '127.0.0.1', function () {}) + var router = new remixd.Router() + router.start(__dirname + '/../../') +}