adsabs / adsws

ADS web services
Other
2 stars 14 forks source link

WEBSERVICES ENV overide #122

Closed taylorshaulis closed 6 years ago

taylorshaulis commented 6 years ago

In the hopes of having all configuration variables able to be overwritten by ENV variables I have come into an issue with WEBSERVICES. The kuberneties configurations are in YAML which do not seem to want to play well with:

WEBSERVICES = { u'adsws.solr_service.solr': u'/search', u'http://biblib-eb-deploy.us-east-1.elasticbeanstalk.com': u'/biblib', u'http://citation-helper-eb-deploy.us-east-1.elasticbeanstalk.com': u'/citation_helper', u'http://export-eb-deploy.us-east-1.elasticbeanstalk.com': u'/export', u'http://graphics-eb-deploy.us-east-1.elasticbeanstalk.com': u'/graphics', u'http://harbour-eb-deploy.us-east-1.elasticbeanstalk.com': u'/harbour', u'http://metrics-eb-deploy.us-east-1.elasticbeanstalk.com': u'/metrics', u'http://myads-eb-deploy.us-east-1.elasticbeanstalk.com': u'/vault', u'http://object-eb-deploy.us-east-1.elasticbeanstalk.com': u'/objects', u'http://orcid-eb-deploy.us-east-1.elasticbeanstalk.com': u'/orcid', u'http://recommender-eb-deploy.us-east-1.elasticbeanstalk.com': u'/recommender', u'http://vis-services-eb-deploy.us-east-1.elasticbeanstalk.com': u'/vis' }

taylorshaulis commented 6 years ago

After much playing around I discovered that i can try putting the value in quotes. Tested and confirmed this does set the ENV variable WEBSERVICES