|
@@ -39,7 +39,7 @@ class Container(api_hour.Container):
|
|
|
def start(self):
|
|
|
yield from super().start()
|
|
|
LOG.info('Starting engines...')
|
|
|
- self.engines['pg'] = self.loop.create_task(aiopg.create_pool(host=os.environ.get('DBHOST', '127.0.0.1'),
|
|
|
+ self.engines['pg'] = self.loop.create_task(aiopg.create_pool(host=os.environ.get('DBHOST', self.config['engines']['pg']['host']),
|
|
|
sslmode='disable',
|
|
|
port=int(self.config['engines']['pg']['port']),
|
|
|
dbname=self.config['engines']['pg']['dbname'],
|