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