aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-12-01 09:34:53 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-12-01 09:34:53 -0200
commit3cc3e6f453decb41d521374adf6c5a8810a05dd3 (patch)
treea9fc0bc9949a61df4254a5b0f5dee18dc2029c9e
parent6cf9e94c2f5fadaba4c08f2d6773ea8952ea895c (diff)
downloadtemplater-3cc3e6f453decb41d521374adf6c5a8810a05dd3.tar.gz
templater-3cc3e6f453decb41d521374adf6c5a8810a05dd3.tar.bz2
Makefile: PORT variable
-rw-r--r--share/templater/templater/files/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/share/templater/templater/files/Makefile b/share/templater/templater/files/Makefile
index b6890f7..fe75ca7 100644
--- a/share/templater/templater/files/Makefile
+++ b/share/templater/templater/files/Makefile
@@ -5,6 +5,9 @@
# any Makefile.* available in the current folder.
#
+# Port to serve content
+PORT="8000"
+
# Set CONTAINER based in what we have available in the system
# This variable can be user in other, included Makefiles to handle virtualization tasks
ifeq ($(shell which kvmx > /dev/null && test -s kvmxfile && echo yes), yes)
@@ -20,7 +23,8 @@ endif
# See http://unix.stackexchange.com/questions/32182/simple-command-line-http-server#32200
# http://php.net/manual/en/features.commandline.webserver.php
serve:
- python -m SimpleHTTPServer
+ python -m SimpleHTTPServer $(PORT)
+ #python -m SimpleHTTPServer
# Or the Python 3 equivalent
#python3 -m http.server
#php -S localhost:8000