Supercharge the One Person Framework with SQLite
fractaledmind.github.io
fractaledmind.github.io
Happy to talk anything about Rails 8 and SQLite.
I tried setting up the docker box with 'rails-new' but couldn't find instructions to use the beta, or even how to run bin/rails within the box.
(shameless plug) Here is a very short post about how to generate a new Rails app with 8.0.0.beta1 https://notes.ghinda.com/post/how-to-start-a-new-rails-proje...
> So, yes, it is actually possible to run full-featured Rails applications in production, with no compromises on features or performance, all on a single machine.
In other words, "stop worrying and just deploy a single application instance".
You can connect to an in-use SQLite database using other tools (like the sqlite3 CLI tool or my https://datasette.io local web app) just fine.
The only thing to avoid is long running write operations, since those will block writes from other processes for their duration.
Enabling WAL mode avoids errors if you try to read while some other process is performing a write.
You can test this yourself: fire up a few terminal terminal windows and run sqlite3 multiple times against the same file on disk and see what happens.
Apparently, this is also no longer necessary with the new replication tool, but haven't tried that.