Skip to content

Commit

Permalink
🐛 ydoc serve 报错
Browse files Browse the repository at this point in the history
  • Loading branch information
tandaly authored May 26, 2020
1 parent 57b4f47 commit 7659a28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function runner() {
const spinner = ora('').start();

const ydocPath = path.resolve(path.dirname(__dirname), '../bin/ydoc')
child_process.exec(`node ${ydocPath} build --mode=dev`, function(error, stdout, stderr){
child_process.exec(`node "${ydocPath}" build --mode=dev`, function(error, stdout, stderr){
spinner.stop()
if(error) throw error;
if(stdout) process.stdout.write(stdout);
Expand Down Expand Up @@ -83,4 +83,4 @@ module.exports = {
})
},
desc: 'Starts a local server. By default, this is at http://127.0.0.1:' + port
}
}

0 comments on commit 7659a28

Please sign in to comment.