use honeycomb_key from environ

This commit is contained in:
Joshua Wise 2020-03-07 23:22:36 -05:00
parent 4b94455678
commit 2a023d51af
2 changed files with 4 additions and 4 deletions

View file

@ -2,8 +2,8 @@ steps:
- name: 'gcr.io/cloud-builders/docker' - name: 'gcr.io/cloud-builders/docker'
args: args:
- build - build
- "--tag=gcr.io/pebble-rebirth/timeline-sync:$TAG_NAME" - "--tag=gcr.io/pebble-rebirth/weather:$TAG_NAME"
- "--file=./Dockerfile.cloudrun" - "--file=./Dockerfile.cloudrun"
- . - .
images: images:
- "gcr.io/pebble-rebirth/timeline-sync" - "gcr.io/pebble-rebirth/weather"

View file

@ -12,8 +12,8 @@ from werkzeug.exceptions import HTTPException
from werkzeug.routing import FloatConverter from werkzeug.routing import FloatConverter
app = Flask(__name__) app = Flask(__name__)
if config['HONEYCOMB_KEY']: if 'HONEYCOMB_KEY' in os.environ:
beeline.init(writekey=config['HONEYCOMB_KEY'], dataset='rws', service_name='auth') beeline.init(writekey=os.environ['HONEYCOMB_KEY'], dataset='rws', service_name='auth')
HoneyMiddleware(app, db_events = True) HoneyMiddleware(app, db_events = True)
auth_internal = os.environ['REBBLE_AUTH_URL_INT'] auth_internal = os.environ['REBBLE_AUTH_URL_INT']