In the HipHop server:
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 5 Apr 2011 04:25:10 +0000 (04:25 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 5 Apr 2011 04:25:10 +0000 (04:25 +0000)
* Serve static content.
* Less verbose logging, we don't really need a notice for every SQL query.

maintenance/hiphop/run-server
maintenance/hiphop/server.conf

index bfd55f5..415bf64 100755 (executable)
@@ -1,9 +1,11 @@
 #!/bin/bash
 
 sourceDir=`dirname "$0"`
+sourceRoot=`readlink -f "$sourceDir/../.."`
 
 "$sourceDir"/build/persistent/mediawiki-hphp \
        -c "$sourceDir/server.conf" \
+       -v Server.SourceRoot="$sourceRoot" \
        --mode=server \
        --port=8080
 
index a8cf0b1..8c53ab5 100644 (file)
@@ -1,5 +1,5 @@
 Log {
-       Level = Verbose
+       Level = Warning
        UseLogFile = true
        File = /dev/stdout
        NativeStackTrace = true
@@ -11,3 +11,6 @@ Debug {
        ServerErrorMessage = true
        TranslateSource = true
 }
+Server {
+       EnableStaticContentFromDisk = true
+}