From d96ba361fcd836d9be21cb6d948daa008b936eb2 Mon Sep 17 00:00:00 2001 From: janic Date: Tue, 25 Oct 2022 23:11:06 +0200 Subject: [PATCH] Added support for API config --- config/template.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/template.py b/config/template.py index 275bb0c..0b77231 100755 --- a/config/template.py +++ b/config/template.py @@ -14,7 +14,7 @@ def template(filename, target_path): # Load Template template = env.get_template(filename) # Render Output - content = template.render(db=config.db) + content = template.render(db=config.db,api=config.api) # Write Template to file filename_without_ext = os.path.splitext(filename)[0] cooked_file = target_path+filename_without_ext @@ -25,4 +25,7 @@ def template(filename, target_path): # Render the templates: ## Create Docker-Compose template("docker-compose.yml.j2", "./src/") +## Create API Config +template(".env.j2", "./bin/") +## Create Cleanup script template("clean-data.sh.j2", "./src/") \ No newline at end of file