Added Mongoose on branch mongoose to implement standalone webserver

Former-commit-id: 60aad4b0c9
This commit is contained in:
Jérôme Schneider 2012-03-19 23:44:33 +01:00
parent 8f124a5f17
commit c218d4fdc0
6 changed files with 33 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,3 @@
<?php
phpinfo();

View file

@ -0,0 +1,2 @@
#!/usr/bin/env sh
./configure --enable-mbstring

View file

@ -0,0 +1 @@
0c05fd2296e461120f6620af1f54a5dfcaaffda3

View file

@ -0,0 +1,27 @@
#!/usr/bin/env sh
platform='unknown'
unamestr=`uname`
if [[ "$unamestr" == 'Linux' ]]; then
platform='linux'
elif [[ "$unamestr" == 'FreeBSD' ]]; then
platform='freebsd'
elif [[ "$unamestr" == 'Darwin' ]]; then
platform='osx'
fi
PATH_docroot=`cd ../Web && pwd`
echo "Serving $PATH_docroot"
PATH_this="`pwd`/"
MONGOOSE_builds=$PATH_this"builds/"
MONGOOSE_phpcgi=$PATH_this"cgi/php-cgi"
if [[ $platform == 'linux' ]]; then
MONGOOSE_bin=$MONGOOSE_builds"linux/mongoose"
elif [[ $platform == 'freebsd' ]]; then
echo "FreeBSD !"
elif [[ $platform == 'osx' ]]; then
MONGOOSE_bin=$MONGOOSE_builds"mac/mongoose"
fi
`$MONGOOSE_bin -I $MONGOOSE_phpcgi -i index.html,index.php -r $PATH_docroot`