chenxixian 6 жил өмнө
parent
commit
d435bf2987
1 өөрчлөгдсөн 10 нэмэгдсэн , 0 устгасан
  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}');
+})