mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 07:30:24 +00:00
Update manage.py
This commit is contained in:
parent
655eb02588
commit
22f9d0e8f7
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue