Create index.js

pull/1/head
yann300 7 years ago committed by GitHub
parent 8a79566b23
commit b0c28a1f85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      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 + '/../../')
}
Loading…
Cancel
Save