Ignore output for development server

The Makefile starts pelican to continuously generate the website and a
development web server both in the background, but the commands do still
output text to the shell. This behaviour is annoying when the same shell
is used further, therefore the output of both commands get redirected to
/dev/null.
Note: Even the -q, --quiet flag of pelican does not suppress
all output.

This fixes #1888
This commit is contained in:
Martin Müller 2016-05-05 15:03:58 +02:00
commit 065f93c011

View file

@ -62,11 +62,11 @@ function start_up(){
local port=$$1
echo "Starting up Pelican and HTTP server"
shift
$$PELICAN --debug --autoreload -r $$INPUTDIR -o $$OUTPUTDIR -s $$CONFFILE $$PELICANOPTS &
$$PELICAN --quiet --autoreload -r $$INPUTDIR -o $$OUTPUTDIR -s $$CONFFILE $$PELICANOPTS &> /dev/null &
pelican_pid=$$!
echo $$pelican_pid > $$PELICAN_PID
mkdir -p $$OUTPUTDIR && cd $$OUTPUTDIR
$PY -m pelican.server $$port &
$PY -m pelican.server $$port &> /dev/null &
srv_pid=$$!
echo $$srv_pid > $$SRV_PID
cd $$BASEDIR