Added support for API config
This commit is contained in:
parent
64d8d629fe
commit
d96ba361fc
@ -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/")
|
Loading…
Reference in New Issue
Block a user