|
@@ -2,17 +2,11 @@
|
|
|
|
|
|
sed -i 's|localhost|'"$DBHOST"'|g' src/Web.config
|
|
sed -i 's|localhost|'"$DBHOST"'|g' src/Web.config
|
|
|
|
|
|
-# todo move somewhere else
|
|
|
|
-wget -N http://nuget.org/nuget.exe -O lib/.nuget/NuGet.exe
|
|
|
|
-
|
|
|
|
# build
|
|
# build
|
|
|
|
+. mono-snapshot mono/20141222114925
|
|
cd src
|
|
cd src
|
|
rm -rf bin obj
|
|
rm -rf bin obj
|
|
xbuild Benchmarks.sln /p:Configuration=Release
|
|
xbuild Benchmarks.sln /p:Configuration=Release
|
|
-
|
|
|
|
-# http://stackoverflow.com/questions/4239645/does-the-razor-view-engine-work-for-mono
|
|
|
|
-rm bin/Microsoft.Web.Infrastructure.dll
|
|
|
|
-
|
|
|
|
cd ..
|
|
cd ..
|
|
|
|
|
|
# nginx
|
|
# nginx
|
|
@@ -26,13 +20,13 @@ done
|
|
conf+="}"
|
|
conf+="}"
|
|
echo -e $conf > $TROOT/nginx.upstream.conf
|
|
echo -e $conf > $TROOT/nginx.upstream.conf
|
|
|
|
|
|
-$NGINX_HOME/sbin/nginx -c $TROOT/nginx.conf -g "${MAX_THREADS}"
|
|
|
|
|
|
+$NGINX_HOME/sbin/nginx -c $TROOT/nginx.conf -g "worker_processes ${MAX_THREADS};"
|
|
|
|
|
|
# Start fastcgi for each thread
|
|
# Start fastcgi for each thread
|
|
# To debug, use --printlog --verbose --loglevels=All
|
|
# To debug, use --printlog --verbose --loglevels=All
|
|
current=9001
|
|
current=9001
|
|
end=$(($current+$MAX_THREADS))
|
|
end=$(($current+$MAX_THREADS))
|
|
while [ $current -lt $end ]; do
|
|
while [ $current -lt $end ]; do
|
|
- fastcgi-mono-server4 --applications=/:$(pwd)/src --socket=tcp:127.0.0.1:$current
|
|
|
|
|
|
+ fastcgi-mono-server4 --applications=/:${pwd}/src --socket=tcp:127.0.0.1:$current &
|
|
let current=current+1
|
|
let current=current+1
|
|
done
|
|
done
|