From e7ef546661046a22f7c469186e1a97f98a6e8d24 Mon Sep 17 00:00:00 2001 From: Justin Mayer Date: Sun, 12 Apr 2020 19:43:09 +0200 Subject: [PATCH] Add PORT to serve-global Makefile task --- pelican/tools/templates/Makefile.jinja2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pelican/tools/templates/Makefile.jinja2 b/pelican/tools/templates/Makefile.jinja2 index 6b13a59c..c8963cae 100644 --- a/pelican/tools/templates/Makefile.jinja2 +++ b/pelican/tools/templates/Makefile.jinja2 @@ -108,7 +108,11 @@ else endif serve-global: +ifdef PORT + $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT) -b $(SERVER) +else $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -b $(SERVER) +endif devserver: ifdef PORT