forked from github/pelican
Generate output directory before 'CD'ing into it.
If the output directory does not exist the 'cd' will fail, but the script will resume, starting the server in the base directory. Therefore we first make sure the output directory actually exists.
This commit is contained in:
parent
2b51c0e499
commit
1fe40db3cb
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ function start_up(){
|
|||
$$PELICAN --debug --autoreload -r $$INPUTDIR -o $$OUTPUTDIR -s $$CONFFILE $$PELICANOPTS &
|
||||
pelican_pid=$$!
|
||||
echo $$pelican_pid > $$PELICAN_PID
|
||||
cd $$OUTPUTDIR
|
||||
mkdir -p $$OUTPUTDIR && cd $$OUTPUTDIR
|
||||
$PY -m pelican.server $$port &
|
||||
srv_pid=$$!
|
||||
echo $$srv_pid > $$SRV_PID
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue