Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start using MONGO_URL on cruncher #717

Open
joaopapereira opened this issue Jul 12, 2018 · 3 comments
Open

Start using MONGO_URL on cruncher #717

joaopapereira opened this issue Jul 12, 2018 · 3 comments

Comments

@joaopapereira
Copy link
Member

Given a developer
When I set the environment variable MONGO_URL
And I start the application
Then the application will start connected to the set database

@tansaku
Copy link

tansaku commented Jul 13, 2018

Currently it relies on MONGOLAB_URI - using dokku:mongo we see that the default URL created when we link up is MONGO_URL so if we could have the cruncher either use this or fall back to it then that would simplify our deploy process

@tansaku
Copy link

tansaku commented Jul 13, 2018

this would involve a change in https://github.com/AgileVentures/MetPlus_resumeCruncher - searching over that repo we can see the places where the project refers to MONGOLAB_URI:

https://github.com/AgileVentures/MetPlus_resumeCruncher/search?q=MONGOLAB&unscoped_q=MONGOLAB

It looks to me like the key change would be in the Procfile, but maybe also in .s2i/bin/run and .openshift/action_hooks/start although I think those files might be specific to our old hosting provider openshift - @joaopapereira perhaps they should also be updated? deleted? ignored?

@joaopapereira
Copy link
Member Author

I merged a PR that removes openshift support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants