Added Mongoose on branch mongoose to implement standalone webserver
Former-commit-id: 60aad4b0c9
This commit is contained in:
parent
8f124a5f17
commit
c218d4fdc0
6 changed files with 33 additions and 0 deletions
BIN
CoreVersions/Baikal_0.1/Mongoose/builds/linux/mongoose
Executable file
BIN
CoreVersions/Baikal_0.1/Mongoose/builds/linux/mongoose
Executable file
Binary file not shown.
BIN
CoreVersions/Baikal_0.1/Mongoose/builds/mac/mongoose
Executable file
BIN
CoreVersions/Baikal_0.1/Mongoose/builds/mac/mongoose
Executable file
Binary file not shown.
3
CoreVersions/Baikal_0.1/Mongoose/builds/mac/phpinfo.php
Normal file
3
CoreVersions/Baikal_0.1/Mongoose/builds/mac/phpinfo.php
Normal file
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
|
||||
phpinfo();
|
2
CoreVersions/Baikal_0.1/Mongoose/cgi/compile-php.sh
Executable file
2
CoreVersions/Baikal_0.1/Mongoose/cgi/compile-php.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env sh
|
||||
./configure --enable-mbstring
|
|
@ -0,0 +1 @@
|
|||
0c05fd2296e461120f6620af1f54a5dfcaaffda3
|
27
CoreVersions/Baikal_0.1/Mongoose/mongoose.sh
Executable file
27
CoreVersions/Baikal_0.1/Mongoose/mongoose.sh
Executable 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`
|
Loading…
Add table
Reference in a new issue