fyrfli
September 7, 2022, 3:54am
1
I notice your code has references to PostgreSQL but the documentation does not mention this addition. Do you have someone working on that aspect of updating the documentation? Or do you guys need help?
matt
September 12, 2022, 5:29pm
2
No one working on it at the moment… I think this was the last discussion about it:
For anyone who wants to add PostgreSQL support to WriteFreely, here’s a basic walkthrough.
First, modify WriteFreely to connect to a PostgreSQL database.
Change your [database] type config value to something like “postgresql”
Check for this new driver value inside connectToDatabase() in app.go
Import the github.com/lib/pq library in app.go
Connect to the PostgreSQL database
Compile the app
Without any other modifications, see what breaks:
Run ./writefreely db init and see if it succeeds
…
1 Like