remix-project mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
remix-project/embark/index.js

18 lines
487 B

7 years ago
/* global path */
7 years ago
var httpServer = require('http-server')
var remixd = require('remixd')
module.exports = (embark) => {
var server = httpServer.createServer({
7 years ago
root: path.join(__dirname, '/node_modules/remix-ide')
7 years ago
})
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()
7 years ago
router.start(path.join(__dirname, '/../../'))
7 years ago
}