diff options
author | Jonas Kohl | 2024-07-19 17:20:26 +0200 |
---|---|---|
committer | Jonas Kohl | 2024-07-19 17:20:26 +0200 |
commit | 8a6897e3fd2efceacf8d020dfbf8b742a68f96cd (patch) | |
tree | f43176d660ec727a72a2a8ac3a029c572a167ecb /Makefile | |
parent | 1e02dc1555f9d298f6f054834589a80c8f8d8273 (diff) |
Add development server and refactor building
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |