Gunn: We open a can of Machiavelli on his ass. Harmony: It's Matchabelli, Einstein, and it doesn't come in a can.

'Soul Purpose'


Buffistas Building a Better Board ++

Do you have problems, concerns, or recommendations about the technical side of the Phoenix? Air them here. Compliments also welcome.


amych - Jan 26, 2018 6:00:16 am PST #3969 of 4671
Now let us crush something soft and watch it fountain blood. That is a girlish thing to want to do, yes?

I'm a big fan of both DO and Rails.

I don't know enough about our specific challenges (seriously, one of these days I'll actually dig in to the codebase, I promise!) to have a lot of opinions on how those apply, but I trust Gud on that part, like, a lot.


Gudanov - Jan 26, 2018 6:07:41 am PST #3970 of 4671
Coding and Sleeping

Postgresql is appealing since it has full text search support in the database.

Rails just does a lot of really nice stuff automatically in terms of security and having database migrations would be really nice if we need to change the schema at some point. Oh, and asset management too.

My PHP code plugs the weak hashing and SQL injection vulnerabilities, but I still need to harden post requests and a few other things that Rails just does.


Gudanov - Jan 26, 2018 6:20:21 am PST #3971 of 4671
Coding and Sleeping

When I say my PHP code looks a lot like rails, I mean seriously similar. A have a file will all the routes, I have controllers, I have models, I have views (twig templates), I have database connections defined in yml. I am basically writing a rails app in PHP.


Laura - Jan 26, 2018 6:32:19 am PST #3972 of 4671
Our wings are not tired.

What would people think of moving hosting from dreamhost to digitalocean?

If the platform is easier for the person/people maintaining the board then it makes sense to me. We have had pretty good experience with dreamhost, I think. Really I am okay with whatever people with more information have to say.


Jesse - Jan 26, 2018 8:47:07 am PST #3973 of 4671
Sometimes I trip on how happy we could be.

I think Liese might be the person who's been under the hood most recently?


Gris - Jan 26, 2018 8:50:44 am PST #3974 of 4671
Hey. New board.

I can see lots of pluses in moving to Digital Ocean / VPS - customizability and control being the big ones obviously. My one worry would be that with control also comes responsibility, and maintaining a VPS requires a bit more hands-on action than maintaining a dreamhost web account. Do we have enough unix gurus on deck that if Gud has to go away for an extended period for some reason we'd be able to keep things up and running?

I feel like if we did move to DO, we'd probably want to set up some user-friendly interfacing options (cPanel-type thing, though I'm sure there are nicer fancier things around now) and of course regular backups. And possibly implement regular automatic updates (at least for minor versions) for things that could potentially develop security holes.

Pushing even further down the tech chain, is there any reason to consider putting the code into a docker container? And the database into a docker volume? This would make switching hosts in the future if we choose to do so remarkably easy, if nothing else...


Tom Scola - Jan 26, 2018 11:49:17 am PST #3975 of 4671
Mr. Scola’s wardrobe by Botany 500

Pushing even further down the tech chain, is there any reason to consider putting the code into a docker container? And the database into a docker volume?

Overkill. There's nothing so complicated about our code that it shouldn't be trivial to port it across hosts in the first place.


Tom Scola - Jan 26, 2018 12:05:29 pm PST #3976 of 4671
Mr. Scola’s wardrobe by Botany 500

Oh, if you're going to be migrating the data from the current mysql database to postgresql: Before the PHP upgrade in 2016, text records were being inserted as windows-1252 (latin-1), but after the upgrade strings were UTF-8. Which is why you see ⬧'s all over the place here. (I selectively converted some records to utf-8 afterwards).

It might make the migration take a little longer, but it would probably be useful, as you're migrating the data, to check and see if a record is coded as windows-1252 or utf-8, and covert the latin-1 strings to utf-8.


Gudanov - Jan 26, 2018 12:10:04 pm PST #3977 of 4671
Coding and Sleeping

Good to know.

I agree with Tom about docker being too much for a pretty straightforward application.


Gris - Jan 28, 2018 5:23:39 am PST #3978 of 4671
Hey. New board.

Fair enough. Just where my headspace is right now.