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
5
5
backend /mirror.png
6
6
backend /mirror.jpg
7
7
backend /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
74
74
fi
75
75
76
76
# 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
79
79
80
80
validate_server () {
81
81
which php & > /dev/null
@@ -108,7 +108,9 @@ start_server () {
108
108
return 1
109
109
else
110
110
printf " ${GREEN} " $NAME " started on $HOST :$PORT ${NORMAL} \n"
111
+ mkdir -p $( dirname " $LOGFILE " )
111
112
php -S " $HOST " :" $PORT " -c tests/php.ini >> " $LOGFILE " 2>&1 &
113
+ mkdir -p $( dirname " $PIDFILE " )
112
114
echo " $HOST " :" $PORT " :$! > $PIDFILE
113
115
return 0
114
116
fi
You can’t perform that action at this time.
0 commit comments