From 065f93c0110d29874d3e4fdc0e3f2a774e8017df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Thu, 5 May 2016 15:03:58 +0200 Subject: [PATCH] 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 --- pelican/tools/templates/develop_server.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pelican/tools/templates/develop_server.sh.in b/pelican/tools/templates/develop_server.sh.in index e345fefd..18bf7b06 100755 --- a/pelican/tools/templates/develop_server.sh.in +++ b/pelican/tools/templates/develop_server.sh.in @@ -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