Skip to content

Commit

Permalink
feat: few changes getting from .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
kemboi22 committed Sep 7, 2024
1 parent 01bbb3f commit 07c5947
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ ERP_NEXT_MODULES = data.get("erpSelectedModules", [])
agent.write_envfile("erpnext-modules.env", {
"ERP_NEXT_MODULES": ERP_NEXT_MODULES
})
agent.set_env("ERP_NEXT_MODULES", ERP_NEXT_MODULES)

agent.dump_env()
7 changes: 5 additions & 2 deletions imageroot/actions/get-configuration/20read
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ config = {}
config["host"] = os.getenv("TRAEFIK_HOST","")
config["http2https"] = os.getenv("TRAEFIK_HTTP2HTTPS") == "True"
config["lets_encrypt"] = os.getenv("TRAEFIK_LETS_ENCRYPT") == "True"
config["erpSelectedModules"] = os.getenv("ERP_NEXT_MODULES", [])
# Load erpnext-modules.env file
if os.path.exists("erpnext-modules.env"):
data = agent.read_envfile("erpnext-modules.env")
config["erpSelectedModules"] = data.get("ERP_NEXT_MODULES", [])
else:
config["erpSelectedModules"] = []

erp_next_modules = "erpnext-modules.env"


# Dump the configuration to stdout
Expand Down

0 comments on commit 07c5947

Please sign in to comment.