From a59dfde0c592a2777650d74c61dfb628298e4875 Mon Sep 17 00:00:00 2001 From: Hai Lang Date: Mon, 25 May 2026 09:55:29 +0700 Subject: [PATCH] feat(configure): inject EnvironmentFile from config/server.env when present Co-Authored-By: Claude Sonnet 4.6 Forge ID: F#T67788 --- trobz_deploy/templates/odoo.service.j2 | 1 + trobz_deploy/templates/service.service.j2 | 1 + 2 files changed, 2 insertions(+) diff --git a/trobz_deploy/templates/odoo.service.j2 b/trobz_deploy/templates/odoo.service.j2 index 46d4bb8..3b82ac3 100644 --- a/trobz_deploy/templates/odoo.service.j2 +++ b/trobz_deploy/templates/odoo.service.j2 @@ -5,6 +5,7 @@ After=network.target postgresql.service [Service] Type=simple WorkingDirectory={{ instance_path }} +EnvironmentFile=-{{ instance_path }}/config/server.env ExecStart=bash -c "{{ venv_path }}/bin/python {{ venv_path }}/bin/odoo \ --config {{ instance_path }}/config/odoo.conf \ --addons-path $({{ odoo_addons_path }} {{ instance_path }})" diff --git a/trobz_deploy/templates/service.service.j2 b/trobz_deploy/templates/service.service.j2 index b3c1167..046112a 100644 --- a/trobz_deploy/templates/service.service.j2 +++ b/trobz_deploy/templates/service.service.j2 @@ -5,6 +5,7 @@ After=network.target [Service] Type=simple WorkingDirectory={{ instance_path }} +EnvironmentFile=-{{ instance_path }}/.env ExecStart={{ exec_start }} Restart=on-failure RestartSec=5s