fixup! fixup! fixup! [IMP] make modular port on host. default with 9069 and 9432 to avoid conflict on host that regularly expose 8069 and 5432

This commit is contained in:
Sylvain LE GAL 2022-05-03 23:23:29 +02:00
parent 1966d9f70e
commit bb0a0670e7
2 changed files with 4 additions and 3 deletions

View File

@ -39,8 +39,10 @@ def run(ctx, step, database, stop_after_init, init_modules):
stop_after_init=stop_after_init,
)
if not stop_after_init:
# todo, WRITE A TEXT TO SAY : the service is available on
# http://localhost:xxxx
logger.info(
"Odoo is available on your host at http://localhost:%d"
% (ctx.obj["config"]["host_odoo_xmlrpc_port"])
)
input("Press 'Enter' to kill the odoo container and exit ...")
except (KeyboardInterrupt, SystemExit):
logger.info("Received Keyboard Interrupt or System Exiting...")

View File

@ -23,7 +23,6 @@ def get_odoo_addons_path(ctx, root_path: Path, migration_step: dict) -> str:
addons_path = []
for key in data.keys():
path = root_path / Path(key)
print(path)
if str(path).endswith(get_odoo_folder(migration_step)):
# Add two folder for odoo folder
addons_path.append(path / Path("addons"))