Kaynağa Gözat

添加 'hexo_run.js'

chenxixian 6 yıl önce
ebeveyn
işleme
d435bf2987
1 değiştirilmiş dosya ile 10 ekleme ve 0 silme
  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}');
+})