Working issues with couchdb access in docker container. Set container to listen on all interfaces, not just localhost.

This commit is contained in:
john
2023-05-20 14:34:13 -04:00
parent afa799479e
commit a761126148

View File

@@ -36,7 +36,10 @@ database = couch['mortgage']
print(f"Database: {database}")
module_directory = os.path.dirname(__file__)
loader = jinja2.FileSystemLoader([os.path.join(module_directory, "templates")])
print(f"Module Directory: {module_directory}")
templates_directory = os.path.join(module_directory, "templates")
print(f"Templates Directory: {templates_directory}")
loader = jinja2.FileSystemLoader([templates_directory])
environment = jinja2.Environment(loader=loader)
app = Flask(__name__)
@@ -520,7 +523,7 @@ def selectTemplate(formatType):
def main():
app.debug = True
app.run()
app.run(host = '0.0.0.0')
if __name__ == '__main__':