commit
b8018ce799
@ -1,14 +1,16 @@ |
|||||||
#!/usr/bin/env node |
#!/usr/bin/env node |
||||||
var httpServer = require('http-server') |
var httpServer = require('http-server') |
||||||
// var remixd = require('remixd') removing remixd capabilities for now |
var remixd = require('remixd') |
||||||
|
|
||||||
var server = httpServer.createServer({ |
var server = httpServer.createServer({ |
||||||
root: __dirname + '/../' |
root: __dirname + '/../' |
||||||
}) |
}) |
||||||
|
|
||||||
console.log('\x1b[33m%s\x1b[0m', 'Starting Remix IDE at http://localhost:8080') |
var folder = process.argv.length > 2 ? process.argv[2] : __dirname |
||||||
|
|
||||||
server.listen(8080, '127.0.0.1', function () {}) |
server.listen(8080, '127.0.0.1', function () {}) |
||||||
// var router = new remixd.Router() |
var router = new remixd.Router() |
||||||
// router.start(__dirname) |
router.start(folder) |
||||||
|
|
||||||
|
console.log('\x1b[33m%s\x1b[0m', 'Starting Remix IDE at http://localhost:8080 and sharing ' + folder) |
||||||
|
|
||||||
|
Loading…
Reference in new issue