utilize ENV for most endpoint hostnames

This commit is contained in:
kevin crawley
2018-04-14 22:48:30 -05:00
parent 96f752a259
commit 0a72d0ba86
10 changed files with 44 additions and 15 deletions

View File

@@ -1,8 +1,9 @@
import json
import pika
import os
class Publisher:
HOST = 'rabbitmq'
HOST = os.getenv("AMQP_HOST", "rabbitmq")
VIRTUAL_HOST = '/'
EXCHANGE='robot-shop'
TYPE='direct'