Working issues with couchdb access in docker container. Set container to listen on all interfaces, not just localhost.
This commit is contained in:
@@ -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__':
|
||||
|
||||
Reference in New Issue
Block a user