Skip to content

Commit 74f6efb

Browse files
committed
start up service
1 parent b7d4df1 commit 74f6efb

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

startup.bat

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)