Use hostname on home page example

Signed-off-by: Ben Firshman <ben@firshman.co.uk>
This commit is contained in:
Ben Firshman 2014-08-06 15:53:31 -07:00
parent 90f5eda930
commit 6d64f20ad6
1 changed files with 1 additions and 4 deletions

View File

@ -59,10 +59,7 @@ from flask import Flask
from redis import Redis
import os
app = Flask(__name__)
redis = Redis(
host=os.environ.get('REDIS_1_PORT_6379_TCP_ADDR'),
port=int(os.environ.get('REDIS_1_PORT_6379_TCP_PORT'))
)
redis = Redis(host="redis_1", port=6379)
@app.route('/')
def hello():