Skip to content

Commit

Permalink
fix: ok this time I think I have it
Browse files Browse the repository at this point in the history
  • Loading branch information
billiegoose committed Sep 11, 2018
1 parent d737557 commit 4de612c
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,17 @@ async function main({_: [cmd], p, d}) {
switch (cmd) {
case 'start': {
if (d) require('daemonize-process')()
const cmd = path.join(
__dirname,
'node_modules',
'.bin',
process.platform === 'win32' ? 'micro.cmd' : 'micro'
)
const cmd = require.resolve('micro/bin/micro.js')
const args = [
cmd,
`--listen=tcp://0.0.0.0:${p || 9999}`
]
let server = spawn(
cmd, args,
'node', args,
{
stdio: 'inherit',
windowsHide: true
windowsHide: true,
cwd: __dirname
}
)
fs.writeFileSync(
Expand Down

0 comments on commit 4de612c

Please sign in to comment.