File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,5 +5,3 @@ backend/mirror.gif
55backend /mirror.png
66backend /mirror.jpg
77backend /GeoIP.dat
8- tests /server.log
9- tests /server.pid
Original file line number Diff line number Diff line change @@ -74,8 +74,8 @@ if [[ $# > 1 ]]; then
7474fi
7575
7676# pidfile contents would be hostname:port:pid
77- PIDFILE=tests /server.pid
78- LOGFILE=tests /server.log
77+ PIDFILE=.build/server /server.pid
78+ LOGFILE=.build/server /server.log
7979
8080validate_server () {
8181 which php & > /dev/null
@@ -108,7 +108,9 @@ start_server () {
108108 return 1
109109 else
110110 printf " ${GREEN} " $NAME " started on $HOST :$PORT ${NORMAL} \n"
111+ mkdir -p $( dirname " $LOGFILE " )
111112 php -S " $HOST " :" $PORT " -c tests/php.ini >> " $LOGFILE " 2>&1 &
113+ mkdir -p $( dirname " $PIDFILE " )
112114 echo " $HOST " :" $PORT " :$! > $PIDFILE
113115 return 0
114116 fi
You can’t perform that action at this time.
0 commit comments