Browse Source

添加 'hexo_run.js'

chenxixian 6 năm trước cách đây
mục cha
commit
d435bf2987
1 tập tin đã thay đổi với 10 bổ sung0 xóa
  1. 10 0
      hexo_run.js

+ 10 - 0
hexo_run.js

@@ -0,0 +1,10 @@
+//run
+const { exec } = require('child_process')
+exec('hexo server',(error, stdout, stderr) => {
+        if(error){
+                console.log('exec error: ${error}')
+                return
+        }
+        console.log('stdout: ${stdout}');
+        console.log('stderr: ${stderr}');
+})