mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-12-20 23:39:42 +01:00
bug fix: staging site issue
This commit is contained in:
@@ -223,7 +223,7 @@ class WebsiteManager:
|
|||||||
|
|
||||||
# Delete the staging Websites record and all associated data BEFORE deleting DB records
|
# Delete the staging Websites record and all associated data BEFORE deleting DB records
|
||||||
from plogical.vhost import vhost
|
from plogical.vhost import vhost
|
||||||
vhost.deleteVirtualHostConfigurations(staging_website.domain)
|
vhost.deleteVirtualHostConfigurations(staging_website.owner.domain)
|
||||||
|
|
||||||
# Delete the WPStaging record
|
# Delete the WPStaging record
|
||||||
wstagingDelete.delete()
|
wstagingDelete.delete()
|
||||||
@@ -235,7 +235,7 @@ class WebsiteManager:
|
|||||||
staging_website.delete()
|
staging_website.delete()
|
||||||
|
|
||||||
except BaseException as msg:
|
except BaseException as msg:
|
||||||
da = str(msg)
|
logging.CyberCPLogFileWriter.writeToFile(f"Error cleaning up WP/Staging sites: {str(msg)}")
|
||||||
|
|
||||||
proc = httpProc(request, 'websiteFunctions/WPsiteHome.html',
|
proc = httpProc(request, 'websiteFunctions/WPsiteHome.html',
|
||||||
Data, 'createDatabase')
|
Data, 'createDatabase')
|
||||||
|
|||||||
Reference in New Issue
Block a user