WriteFreely version that's stable and meets our original goals:
- Easy install and setup
- Self-contained binary
- Exposed, stable API
- Create a single blog or host multiple blogs
WriteFreely version that's stable and meets our original goals:
Perfect 馃憤
sure, I'll add that in.
Nice, this looks great!
quick ascii cast demo, running on my local machine so the restart fails as it's not running.
https://asciinema.org/a/8IaQxRBjRA955cm8Jjy86XtPi
Yeah, a button like that would be the end-goal. And maybe pair that with T579: WriteFreely daemon to make it all seamless.
I guess initially just a script would work. I haven't looked yet but the a go utillity would be nice, the admin could then just have a check for updates button which could then ask to download and confirm upgrade/restart.
@robjloranger What do you think would be the best way to do this to help with T600? A single Go-based utility? A simple bash script?
I may be betraying my inexperience with the project, but a question about this case:
Another option: overseer
One potential library to help with this: go-update
Need a little time to read into the "magic" that happens in this library, but certmagic might be the easiest way to implement this.
Have been testing more over the weekend -- no serious issues. Got this merged in and will release it today. Thanks again @benovermyer!
Okay, did some more refactoring and caught some other errors / differences between MySQL and SQLite. Also added the SQLite option in the config setup.
Sounds great.
After this has been merged in, I'll work on the PostgreSQL support.
Awesome. Plenty of people asking about that now, so that'll be good. If you want to take the charge on that one, please feel free!
Oh, and I believe that adding PostgreSQL support will be much easier than SQLite. It should be able to use schema.sql and all of the MySQL SQL commands unmodified. The only bit that it'll require is a new connection block in the initial setup.
Some feedback from my initial multi-user testing: so far almost everything looks solid, this is really good work! Only issue so far is something weird going on with scheduled posts. They correctly show as "scheduled" and don't show up for non-auth'd users. But once the published time has passed, the "scheduled" badge correctly drops for auth'd users, but the post doesn't show up for non-auth'd users like it should.
Awesome!! I'll give it a thorough testing this weekend in various configurations and let you know how it looks.
@matt OK, with the latest commit on the sqlite-support branch, SQLite support is working.
I have a working variation of schema.sql (called, appropriately enough, sqlite.sql) for SQLite.
Ah, gotcha. I thought there might be some differences when I was reading through this fork with sqlite support.
As an example, SQLite doesn't support the SQL function NOW(). It also only has five data types - NULL, INTEGER, REAL, TEXT, and BLOB. Yes, that means boolean values are stored as full INTEGERs.
So as I've started testing this, I've discovered there is a vast chasm of differences between normal SQL and SQLite SQL. I'm working on the logic to handle both.
The working branch is here: https://github.com/writeas/writefreely/tree/sqlite-support
Ok cool 馃憤 let me know if you need anything along the way. Excited to get this in!