Added support for API config
This commit is contained in:
		@@ -14,7 +14,7 @@ def template(filename, target_path):
 | 
				
			|||||||
    # Load Template
 | 
					    # Load Template
 | 
				
			||||||
    template = env.get_template(filename)
 | 
					    template = env.get_template(filename)
 | 
				
			||||||
    # Render Output
 | 
					    # Render Output
 | 
				
			||||||
    content = template.render(db=config.db)
 | 
					    content = template.render(db=config.db,api=config.api)
 | 
				
			||||||
    # Write Template to file
 | 
					    # Write Template to file
 | 
				
			||||||
    filename_without_ext = os.path.splitext(filename)[0]
 | 
					    filename_without_ext = os.path.splitext(filename)[0]
 | 
				
			||||||
    cooked_file = target_path+filename_without_ext
 | 
					    cooked_file = target_path+filename_without_ext
 | 
				
			||||||
@@ -25,4 +25,7 @@ def template(filename, target_path):
 | 
				
			|||||||
# Render the templates:
 | 
					# Render the templates:
 | 
				
			||||||
## Create Docker-Compose
 | 
					## Create Docker-Compose
 | 
				
			||||||
template("docker-compose.yml.j2", "./src/")
 | 
					template("docker-compose.yml.j2", "./src/")
 | 
				
			||||||
 | 
					## Create API Config
 | 
				
			||||||
 | 
					template(".env.j2", "./bin/")
 | 
				
			||||||
 | 
					## Create Cleanup script
 | 
				
			||||||
template("clean-data.sh.j2", "./src/")
 | 
					template("clean-data.sh.j2", "./src/")
 | 
				
			||||||
		Reference in New Issue
	
	Block a user