-
Notifications
You must be signed in to change notification settings - Fork 59
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
app settings.json not honoring database configuration #197
Comments
Could there be environment variables still on the system that bagetter can read? The ASP.NET Core runtime will take any environment variables and override whatever is in the An old idea could help analyse this, let me create a feature release, maybe even today, so we can see what's going on. |
This was clean out the box from today - as you can see my Building the project locally does show it is reading the As it stands now I can manage a combo of using both |
Ok so I found the problem and I guess we should definitely add that to the docs somewhere. The docker image we build automatically sets sqlite set as database configuration via env variables. This means that any We can definitely get rid of that, or rather comment it out so it still stands as an example for people wanting to build their own image. For now, you'll have to rely on the |
Need opinions and ideas:
This means, everybody using the docker image without configuring their own DB is using Just removing the default env from the So development can be fixed by modifying the Any ideas about how to remove the default env from the Or do we just add setting the DB via environment as necessary for docker installs? |
This is the way to go in my opinion. Not breaking the current behaviour. A clear mention in the documentation should be enough to reference it later if the question comes up anytime in the future. |
Running
bagetter
as a docker containerDescribe the bug
appsettings.json
not honoring database configuration. Unsure yet if it's honoring other sections.To Reproduce
Expected behavior
For BaGetter to connect to my PostgreSql server
Additional context
It connects just fine if I use environment variables. I know the
appsettings.json
file is being read because if I change one of theLogging
options to an invalid logging type (e.g.Invalid
) then I get exceptions as a result.To further debug, I also changed
ConnectionString
toxconnectionString
- this should also result in an exception asConnectionString
is decorated with the[Required]
attribute. However no such event happens.I'm also unsure if the auth piece is working as I've yet to get to that section but, as it stands, I'm able to hit the web page directly with no auth challenges.
docker-compose.yml
:The text was updated successfully, but these errors were encountered: