diff options
author | ng0 <ng0@n0.is> | 2019-02-25 09:17:47 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-02-25 09:18:21 +0000 |
commit | d848c1632f86ae36e5c7e3d9084c1938e3bbfe78 (patch) | |
tree | 464d7ceb1d32ffcc4f71ddedf06664046e5075c0 | |
parent | 34c766886b9a6f87bd34329434c5ab7d6e65421d (diff) | |
download | www-d848c1632f86ae36e5c7e3d9084c1938e3bbfe78.tar.gz www-d848c1632f86ae36e5c7e3d9084c1938e3bbfe78.zip |
Makefile: use python http.server for make run
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -61,7 +61,8 @@ current_dir = $(shell pwd) | |||
61 | 61 | ||
62 | run: all | 62 | run: all |
63 | @[ "$(BROWSER)" ] || ( echo "You need to export the environment variable 'BROWSER' to run this."; exit 1 ) | 63 | @[ "$(BROWSER)" ] || ( echo "You need to export the environment variable 'BROWSER' to run this."; exit 1 ) |
64 | $(RUN_BROWSER) $(current_dir)/rendered/en/index.html | 64 | $(RUN_BROWSER) http://0.0.0.0:8000 & |
65 | cd rendered && $(PYTHON) -m http.server | ||
65 | 66 | ||
66 | 67 | ||
67 | # docker-all: Build using a docker image which contains all the needed packages. | 68 | # docker-all: Build using a docker image which contains all the needed packages. |