This commit is contained in:
dengtongyu committed 2020-11-24 18:10:59 +08:00
1 parent 40cde540d6
commit d6fae200a7
3 files changed
+28 -1

No files matched your search

+2 -1
View File
@@ -4,4 +4,5 @@ db.json
*.log *.log
node_modules/ node_modules/
public/ public/
.deploy*/ .deploy*/
hexo-blog.zip
+21
View File
@@ -0,0 +1,21 @@
var spawn = require('child_process').spawn;
free = spawn('hexo', ['server', '-p 4000']);
free.stdout.on('data', function (data) {
console.log('standard output:\n' + data);
});
free.stderr.on('data', function (data) {
console.log('standard error output:\n' + data);
});
free.on('exit', function (code, signal) {
console.log('child process eixt ,exit:' + code);
});
Executable
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
echo "正在打包..."
zip -ry -q ./hexo-blog.zip ./ -x "./node_modules/*" -x "./package-lock.json" -x "./wordpress.2020-11-13.xml" -x "./hexo-blog.zip" -x "./db.json"
echo "打包完成!"