We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7d4df1 commit 74f6efbCopy full SHA for 74f6efb
1 file changed
startup.bat
@@ -0,0 +1,25 @@
1
+@ECHO OFF
2
+SETLOCAL ENABLEDELAYEDEXPANSION
3
+
4
+::--------------------------------------------------------
5
+::-- @author frankdevhub@163.com
6
+::-- @Date 2019/04/05 Friday
7
+::-- @description: build and start local service
8
+::-- @host: http://localhost:4000
9
10
11
+@echo 'start'
12
13
+for /f "tokens=5" %%i in ('netstat -aon ^| findstr ":4000"') do (
14
+ set n=%%i
15
+)
16
17
+if not "%n%"!=="" (
18
+ taskkill /f /pid %n%
19
20
21
+jekyll build | jekyll serve
22
23
24
+PAUSE
25
0 commit comments