exec @docker
This commit is contained in:
parent
93bd45188c
commit
3367976a30
@ -3,7 +3,7 @@ addons_path = /mnt/extra-addons
|
|||||||
data_dir = /var/lib/odoo
|
data_dir = /var/lib/odoo
|
||||||
db_host = db
|
db_host = db
|
||||||
db_port = 5432
|
db_port = 5432
|
||||||
db_user = nexterp
|
db_user = default_repo
|
||||||
db_password = smartyourlife
|
db_password = smartyourlife
|
||||||
proxy_mode = True
|
proxy_mode = True
|
||||||
|
|
||||||
|
@ -14,9 +14,7 @@ def find_available_port(start_port=80):
|
|||||||
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
|
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
server = os.getenv('DB_SERVER','localhost')
|
sock.bind(('0.0.0.0', start_port))
|
||||||
color_log.Show(3,f"Check port {start_port} for db server {server}")
|
|
||||||
sock.bind((server, start_port))
|
|
||||||
color_log.Show(3,f" {start_port} is Open")
|
color_log.Show(3,f" {start_port} is Open")
|
||||||
return start_port
|
return start_port
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
|
@ -19,9 +19,7 @@ def find_available_port(start_port=80):
|
|||||||
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
|
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
server = os.getenv('DB_SERVER','localhost')
|
sock.bind(('0.0.0.0', start_port))
|
||||||
color_log.Show(3,f"Check port {start_port} for db server {server}")
|
|
||||||
sock.bind((server, start_port))
|
|
||||||
color_log.Show(3,f" {start_port} is Open")
|
color_log.Show(3,f" {start_port} is Open")
|
||||||
return start_port
|
return start_port
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user