Skip to content

Commit

Permalink
Added a wait loop in startup() function until pelican created output …
Browse files Browse the repository at this point in the history
…directory. This will avoid server to point the top directory and make it to point inside the output directory
  • Loading branch information
gnurenga committed Jul 9, 2015
1 parent 9d9e34b commit 7f39f40
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions develop_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ function start_up(){
$PELICAN --debug --autoreload -r $INPUTDIR -o $OUTPUTDIR -s $CONFFILE $PELICANOPTS &
pelican_pid=$!
echo $pelican_pid > $PELICAN_PID

while [ ! -e $OUTPUTDIR ];
do
sleep 1
done

cd $OUTPUTDIR
$PY -m pelican.server $port &
srv_pid=$!
Expand Down

0 comments on commit 7f39f40

Please sign in to comment.