mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
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:
parent
28e79b7a38
commit
065f93c011
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue