Skip to content
Snippets Groups Projects
Commit 20a6127d authored by felixwelter's avatar felixwelter
Browse files

Make host configurable

parent 11df7450
Branches
No related tags found
No related merge requests found
.idea
venv
from flask import Flask, render_template, request, redirect, send_file
from elasticsearch_dsl import connections, Search
import os
app = Flask(__name__)
connections.create_connection(hosts=['34.121.207.248:9200'], timeout=20)
connections.create_connection(hosts=[os.getenv('ES_HOST', 'localhost')], timeout=20)
@app.route('/search')
......@@ -43,4 +44,4 @@ def index():
if __name__ == '__main__':
app.debug = True
app.run(host="0.0.0.0")
app.run(host="0.0.0.0", port=5000)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment