jeroenbourgois
Multi repos, config and MyXQL
I have two repos, and just recently we switched to myxql from mariaex. Since then, when starting the application, the second repo errors out, and seems to use the IP address/hostname of the machine network I am instead of what is supplied in the config.
Surely, there is a tiny mistake I am overlooking, but it is driving me mad.
As a first hint: how would ecto/myxql be able to get a hold of that ip?
For instance, on my local machine, it goes ahead and fetches my public ip (behind ISP router here). Or for the actual app running docker, it has the public IP of the host machine, instead of the actual DB host ip, as configured in the settings. The settings itself seem to be OK, we inspected the sys.config file inside the docker container.
Maybe our supervision tree for the application is not ok, but it worked just fine with mariaex.
children = [
# Start the Ecto repository
supervisor(App.Repo, []),
supervisor(App.RepoDuo, []),
# Start the endpoint when the application starts
supervisor(App.Endpoint, []),
Marked As Solved
jeroenbourgois
Ok, we got it!
I knew it was going to be something silly, sorry to waste your time a bit. Our generated pwd for the db had a $ in it, and it had to be escaped (in the env file where we export it from). So dumb… but it works now! ![]()
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








