I250 -Clarify SQLite / MySQL Instructions for local generation #251
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "paulj/hpr_generator:recommend_sqlite"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Remove the mySQL instructions from README.md. This makes both README.md and GETTING_STARTED.md consistent. I have also followed the instructions and successfully completed generation of the website locally, so can confirm they are good.
Should we not be removing the mySQL instructions - I still see it included ?
For most people, only SQLite is needed, but if you are developing for hub you will need MySQL. Plus I wasn't sure if the main website was generated from MySQL or SQLite. I suggested we go the other direction and the MySQL directions where they were missing.
I250 - remove mySQL instructions from README.mdto I250 -Clarify SQLite / MySQL Instructions for local generationThis is now the case with the code included in this pull request:
We use a RMDBS on the Hub in order to handle the concurrency issues needed for the usecase of managing reservations. We can't use sqlite for this. We use MariaDB as it's the successor to MySQL and was traditionally widely available for affordable hosting. Going forward I expect we will need to migrate to PostgreSQL.
We do not need to support database concurrency when processing
hpr_generator
so there is no reason for to use anything other than sqlite. This remains the case even when we have multiple static domains to push to. Either we do them from one source (eg admin serverborg
), or each mirror admin run their own version ofhpr_generator
. I don't ever expect runhpr_generator
on the hub (although if we did, it could use sqlite as well). The whole point is that when the main server may be taken offline, we can continue operating by switching admin server to point to some other provider.Our goal is to share knowledge. We cannot assume our successors will have a clue about how all this works, and so it's critical we make as little code as possible. It's very likely sqlite will be maintained in the future given it's code base, the same cannot be said for MySQL.
If someone wants to take the sql and import it into another database then that's fine, but I'd suggest not as part of the Hacker Public Radio maintained code. Obviously I'm happy to offer help but not to the extent of maintaining two code bases.
So my reading of this means we can also delete the references to MySQL/MariaDB in site.cfg comments and also delete the MySQL/MariaDB related code in the templates.
If you agree to the statements - then yes.
@rho_n - If you agree with Ken's direction, I will fix the documentation accordingly, so that can be merged. With your blessing, I will make another pull request to pull the code, so you can review it easily and confirm I have understood it properly. That will be a good learning opportunity for me. Of course if you would rather do the code removal yourself, that's also fine!
@paulj Yes that sounds good. I am fine with removing the MySQL references from both documentation and code in two PRs. Thanks for jumping in and helping on this.
@paulj What is the status of this now ?
Checkout
From your project repository, check out a new branch and test the changes.