Skip to content

Commit

Permalink
Uses pelican listen instead of develop_server.sh for development server
Browse files Browse the repository at this point in the history
--listen was added in Pelican 4.0.0

Signed-off-by: Nabarun Pal <[email protected]>
  • Loading branch information
palnabarun committed May 25, 2020
1 parent 446e5ff commit c39b36a
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ OUTPUTDIR=$(BASEDIR)/output
CONFFILE=$(BASEDIR)/pelicanconf.py
PUBLISHCONF=$(BASEDIR)/publishconf.py

PORT ?= 8000
BIND ?= 127.0.0.1

DEBUG ?= 0
ifeq ($(DEBUG), 1)
Expand Down Expand Up @@ -44,16 +46,7 @@ else
endif

devserver:
ifdef PORT
$(BASEDIR)/develop_server.sh restart $(PORT)
else
$(BASEDIR)/develop_server.sh restart 8000
endif

stopserver:
kill -9 `cat pelican.pid`
kill -9 `cat srv.pid`
@echo 'Stopped Pelican and SimpleHTTPServer processes running in background.'
$(PELICAN) --listen --autoreload $(INPUTDIR) --settings $(CONFFILE) --port $(PORT) --bind $(BIND) $(PELICANOPTS)

publish:
$(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS)
Expand Down

0 comments on commit c39b36a

Please sign in to comment.