Skip to content

Commit

Permalink
Merge pull request #6 from terrabyte-tech/dev
Browse files Browse the repository at this point in the history
dev: update localserve micro-opt version
  • Loading branch information
samharp authored Nov 13, 2023
2 parents 4a1f4d6 + 34858c4 commit f7fbf15
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 6 deletions.
6 changes: 0 additions & 6 deletions localserve-php.bat

This file was deleted.

31 changes: 31 additions & 0 deletions localserve-python_v2.0.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
@ECHO OFF
:: v2.0
:: to execute as expected, requires python 3.x

:start
set choice=
set /p choice= Open browser to view served website? [N]:
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='Y' goto yes
if '%choice%'=='y' goto yes
if '%choice%'=='N' goto no
IF '%choice%'=='n' goto no
if '%choice%'=='' goto no
echo "%choice%" is not valid
echo.
goto start

:no
echo Skipped...
clear
GOTO

:yes
echo Opening browser...
start "" http://localhost:8000

:startServer
ECHO starting local server at
ECHO %cd%
ECHO with python (localhost:8000)
python -m http.server

0 comments on commit f7fbf15

Please sign in to comment.