forked from FWS/FWS-TEMPLATE-Website-OnePage
Running the site locally required Apache and reading the .htaccess. Add a php -S router that reproduces that routing (clean URLs, site 404) so pages behave the same locally as in production, plus serve scripts and docs.
9 lines
328 B
Batchfile
9 lines
328 B
Batchfile
@echo off
|
|
rem Serveur de développement local sous Windows (aucun Apache/WAMP requis).
|
|
rem Usage : tools\serve.cmd (ou set PORT=8080 && tools\serve.cmd)
|
|
cd /d "%~dp0.."
|
|
if "%HOST%"=="" set HOST=127.0.0.1
|
|
if "%PORT%"=="" set PORT=8080
|
|
echo FWS Linux - serveur local : http://%HOST%:%PORT%
|
|
php -S %HOST%:%PORT% tools\router.php
|