Merge "Disambiguate buildForm docs, add TODO"
[mediawiki.git] / maintenance / hiphop / run-server
blobbd6281b12a8a9a4a6bf7b2716d4fddc2b5e3bd9e
1 #!/usr/bin/hhvm -f
2 <?php
4 require( __DIR__ . '/../Maintenance.php' );
6 class RunHipHopServer extends Maintenance {
7         function __construct() {
8                 parent::__construct();
9         }
11         function execute() {
12                 global $IP;
14                 passthru(
15                         'cd ' . wfEscapeShellArg( $IP ) . " && " .
16                         wfEscapeShellArg(
17                                 'hhvm',
18                                 '-c', __DIR__."/server.conf",
19                                 '--mode=server',
20                                 '--port=8080'
21                         ),
22                         $ret
23                 );
24                 exit( $ret );
25         }
27 $maintClass = 'RunHipHopServer';
28 require_once RUN_MAINTENANCE_IF_MAIN;