Skip to content
This repository has been archived by the owner on Apr 22, 2019. It is now read-only.

Allow Elasticsearch URL to be set by Dockerfile with fallback #35

Open
1 of 2 tasks
BretFisher opened this issue Apr 27, 2016 · 0 comments
Open
1 of 2 tasks

Allow Elasticsearch URL to be set by Dockerfile with fallback #35

BretFisher opened this issue Apr 27, 2016 · 0 comments
Assignees

Comments

@BretFisher
Copy link
Member

BretFisher commented Apr 27, 2016

Story: Someone can set the ES URL via docker-compose with environment variable ELASTICSEARCH_URL. If they don't set it but still launch with Docker, the Dockerfile will fallback to http://hercules.code4hr.org:33366/. If they don't use Docker for development, the app will fallback to this json.

  • update Dockerfile to use proper url
  • update connectDatabase() to try and use the environment variable if it exists, else fall back to Hercules.json
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant