From ff971efc4200b164035cfcd592d3ffb88d8e2375 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Mon, 21 Jun 2021 11:28:17 +0800 Subject: [PATCH] Put hostname as default domain. This is convenient since we have one VM per domain for admin and web services --- web/public_php/setup/install.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/public_php/setup/install.php b/web/public_php/setup/install.php index b4a2ba44d..1d51f0538 100644 --- a/web/public_php/setup/install.php +++ b/web/public_php/setup/install.php @@ -506,13 +506,13 @@ $shardDev = $shardWinDev;
- "> + ">
- "> + ">
@@ -525,11 +525,11 @@ $shardDev = $shardWinDev; } else if ($shardDev) { - print "/home/nevrax/dev/www"; + print str_replace("/code/web/public_php/setup/install.php", "/pipeline/shard_dev/www", __FILE__); } else { - print "/home/nevrax/prod/www"; + print "/home/nevrax/" + gethostname() + "/www"; } ?>">