From 85082311f8f3f9de71ac0bf76479888970ecf7d7 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Wed, 3 Mar 2021 13:35:09 +0500 Subject: [PATCH] bug fix: cater remote db during staging deployment --- plogical/applicationInstaller.py | 1 - websiteFunctions/StagingSetup.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/plogical/applicationInstaller.py b/plogical/applicationInstaller.py index 7450c22f0..f4d4e7748 100755 --- a/plogical/applicationInstaller.py +++ b/plogical/applicationInstaller.py @@ -1377,7 +1377,6 @@ $parameters = array( wm.submitWebsiteDeletion(1, self.extraArgs) logging.statusWriter(self.extraArgs['tempStatusPath'], '%s [404].' % (str(msg))) - def installWhmcs(self): try: diff --git a/websiteFunctions/StagingSetup.py b/websiteFunctions/StagingSetup.py index 7e68fe7f6..d97bd8179 100644 --- a/websiteFunctions/StagingSetup.py +++ b/websiteFunctions/StagingSetup.py @@ -98,7 +98,7 @@ class StagingSetup(multi.Thread): dbNameRestore, dbUser, dbPassword = ApplicationInstaller(None, None).dbCreation(tempStatusPath, website) - command = 'wp core config --dbname=%s --dbuser=%s --dbpass=%s --path=%s' % (dbNameRestore, dbUser, dbPassword, path) + command = 'wp core config --dbname=%s --dbuser=%s --dbpass=%s --dbhost=%s --path=%s' % (dbNameRestore, dbUser, dbPassword, ApplicationInstaller.LOCALHOST, path) ProcessUtilities.executioner(command, website.externalApp) ## Exporting and importing database