Skip to content

Commit 3136893

Browse files
committed
added changes for development mode
1 parent 80dc441 commit 3136893

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

docker-compose.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ services:
1010
volumes:
1111
- esdata1:/usr/share/elasticsearch/data
1212
web:
13-
image: prakhar1989/foodtrucks-web
13+
build: .
1414
command: python app.py
15+
environment:
16+
- DEBUG=True
1517
depends_on:
1618
- es
1719
ports:

flask-app/app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ def check_and_load_index():
4949
def index():
5050
return render_template('index.html')
5151

52+
@app.route('/hello')
53+
def hello():
54+
return "hello world"
55+
5256
@app.route('/debug')
5357
def test_es():
5458
resp = {}

0 commit comments

Comments
 (0)