Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added changes for development mode
  • Loading branch information
prakhar1989 committed Jul 31, 2018
1 parent 80dc441 commit 3136893
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker-compose.yml
Expand Up @@ -10,8 +10,10 @@ services:
volumes:
- esdata1:/usr/share/elasticsearch/data
web:
image: prakhar1989/foodtrucks-web
build: .
command: python app.py
environment:
- DEBUG=True
depends_on:
- es
ports:
Expand Down
4 changes: 4 additions & 0 deletions flask-app/app.py
Expand Up @@ -49,6 +49,10 @@ def check_and_load_index():
def index():
return render_template('index.html')

@app.route('/hello')
def hello():
return "hello world"

@app.route('/debug')
def test_es():
resp = {}
Expand Down

0 comments on commit 3136893

Please sign in to comment.