-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserve.bat
More file actions
38 lines (31 loc) · 781 Bytes
/
Copy pathserve.bat
File metadata and controls
38 lines (31 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@echo off
echo ============================================
echo Starting Jekyll Local Server
echo ============================================
echo.
cd /d "%~dp0"
if not exist "Gemfile" (
echo [ERROR] Gemfile not found!
pause
exit /b 1
)
echo Starting Jekyll server...
echo.
echo Site will be available at: http://localhost:4000
echo.
echo Press Ctrl+C to stop the server.
echo.
REM Start Jekyll in background
start /B bundle exec jekyll serve --drafts
REM Wait 10 seconds for server to initialize
echo Waiting for server to start...
timeout /t 10 /nobreak
REM Open browser
start http://localhost:4000
echo.
echo [SUCCESS] Server started and browser opened!
echo.
echo Server is running in the background.
echo Close this window when you are done.
echo.
pause