Update manage.py

This commit is contained in:
qiaofeng1227 2023-05-11 16:34:59 +08:00 committed by GitHub
parent 655eb02588
commit 22f9d0e8f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -744,10 +744,10 @@ def set_domain(domain,app_id):
def get_container_port(container_name): def get_container_port(container_name):
port = "80" port = "80"
cmd = "docker container inspect " + container_name cmd = "docker port wordpress |grep ::"
result = shell_execute.execute_command_output_all(cmd)["result"] result = shell_execute.execute_command_output_all(cmd)["result"]
myLogger.info_logger(result) myLogger.info_logger(result)
response = json.dumps(result) port = result.split('/')[0]
myLogger.info_logger(response) myLogger.info_logger(port)
return port return port