This commit is contained in:
hoangvv 2025-01-07 22:23:08 +07:00
parent cc37739c59
commit 214bf83d25
3 changed files with 2 additions and 8 deletions

View File

@ -1,3 +1,4 @@
COMPOSE_PROJECT_NAME=
#Odoo
ODOO_IMAGE=
ODOO_TAG=

View File

@ -1,8 +0,0 @@
[options]
addons_path = /mnt/extra-addons
data_dir = /var/lib/odoo
db_host = db
db_port = 5432
db_user = nexterp
db_password = smartyourlife

View File

@ -75,6 +75,7 @@ def main():
# Update .env file
env_file_path = Path("deployment/.env")
set_key(dotenv_path=env_file_path, key_to_set="COMPOSE_PROJECT_NAME", value_to_set=f"odoo-{tag}",quote_mode="never")
set_key(dotenv_path=env_file_path, key_to_set="PG_PORT", value_to_set=find_available_port(5432),quote_mode="never")
set_key(dotenv_path=env_file_path, key_to_set="PG_DB", value_to_set=db_name,quote_mode="never")
set_key(dotenv_path=env_file_path, key_to_set="PG_USER", value_to_set=db_user,quote_mode="never")