|
@@ -7,10 +7,12 @@ from os.path import expanduser
|
|
|
home = expanduser("~")
|
|
|
|
|
|
def start(args, logfile, errfile):
|
|
|
- setup_util.replace_text("hhvm/once.php.inc", "host=.*;", "host=" + args.database_host + ";")
|
|
|
+ setup_util.replace_text("hhvm/once.php.inc", "host=localhost;", "host=" + args.database_host + ";")
|
|
|
setup_util.replace_text("hhvm/deploy/config.hdf", "SourceRoot = .*\/FrameworkBenchmarks", "SourceRoot = " + home + "/FrameworkBenchmarks")
|
|
|
setup_util.replace_text("hhvm/deploy/config.hdf", "Path = .*\/.hhvm.hhbc", "Path = " + home + "/FrameworkBenchmarks/hhvm/.hhvm.bbhc")
|
|
|
- setup_util.replace_text("hhvm/deploy/config.hdf", "PidFile = .*\/hhvm.pid", "Path = " + home + "/FrameworkBenchmarks/hhvm/hhvm.pid")
|
|
|
+ setup_util.replace_text("hhvm/deploy/config.hdf", "PidFile = .*\/hhvm.pid", "PidFile = " + home + "/FrameworkBenchmarks/hhvm/hhvm.pid")
|
|
|
+ setup_util.replace_text("hhvm/deploy/config.hdf", "File = .*\/error.log", "File = " + home + "/FrameworkBenchmarks/hhvm/error.log")
|
|
|
+
|
|
|
|
|
|
try:
|
|
|
if os.name == 'nt':
|