Using trial and error to teach myself terraform.
Equal parts fun and frustrating. Every fix a new error pops up. But I am slowly getting where I want to be. Having something working, and a bigger understanding of what I am actually doing.
Skal vi se… skulle vi bare pælme inn Debian i Mac mini (6.1 @ 2012) som server med blant annet Docker sammen med Portainer?
Ja, tenker det er på tide å ta steget. Ideen har ligget i tanken litt for lenge nå. #linux #selfhosting #learningbydoing
I finally got testing working the way I wanted it and it turns out, it did not take a lot of lines of code.
in my pytest.ini file, I set an env var with the file path to the sqlite database.
When the app runs, it checks that same env var and will default to the filename production.db if the env var is not set.
If the database name is the non-prod one, it will drop all the tables when the app launches.
The end result is that my test database is empty every time I run pytest and data that should persist in production.db will be preserved between app runs.
Was macht meinen #SoftwareArchitektur Kickstart so besonders? https://www.socreatory.com/de/trainings/arch-kickstart #LearningByDoing