From 8a6897e3fd2efceacf8d020dfbf8b742a68f96cd Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Fri, 19 Jul 2024 17:20:26 +0200 Subject: Add development server and refactor building --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 83fe1ae..ae56b92 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ SRCFILES:=$(shell find src/pages/ -type f -name '*.php') HTMLTARGETS:=$(SRCFILES:src/pages/%.php=build/%.html) -.PHONY: build/static publish +.PHONY: build/static publish dev-server all: $(HTMLTARGETS) $(STATICFILES) build/static @@ -22,3 +22,8 @@ publish-http: rsync -avh ./build/ hozyro-srv:/var/www/hozyro --delete publish-all: publish publish-http + +dev-server: + @bash -c 'echo -e "\e[91mWARNING: This server should only be used for \ + development purposes! IT IS NOT PRODUCTION-SAFE! USE WITH CAUTION!\e[0m"' + php -S 127.0.0.1:19310 dev-server.php -- cgit v1.2.3