소스 검색

Merge pull request #380 from orchardup/use-hostname-for-redis-on-home-page-example

Use hostname on home page example
Aanand Prasad 11 년 전
부모
커밋
72ce7ce374
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      docs/index.md

+ 1 - 4
docs/index.md

@@ -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():