This commit is contained in:
midoks
2020-07-15 08:49:30 +08:00
parent 3617eb6028
commit 2309d07d26
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ function app_xhprof_end() {
$run_id = $xhprof_runs->save_run($xhprof_data, 'xhprof_foo');
$profiler_url = sprintf('http://0.0.0.0:5858/index.php?run=%s&source=xhprof_foo', $run_id);
$profiler_url = sprintf('http://{$LOCAL_IP}:5858/index.php?run=%s&source=xhprof_foo', $run_id);
echo "<script language='javascript'>window.open('{$profiler_url}')</script>";
// echo '<a href="' . $profiler_url . '" target="_blank">Profiler output</a>';
+1
View File
@@ -82,6 +82,7 @@ def contentReplace(content, version):
content = content.replace('{$ROOT_PATH}', mw.getRootDir())
content = content.replace('{$SERVER_PATH}', service_path)
content = content.replace('{$PHP_VERSION}', version)
content = content.replace('{$LOCAL_IP}', mw.getLocalIp())
if mw.isAppleSystem():
# user = mw.execShell(