Now, this would be the perfect time for a swear word.

Kaylee ,'Jaynestown'


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.


-t - Jan 22, 2018 3:05:27 am PST #3967 of 4671
I am a woman of various inclinations and only some of the time are they to burn everything down in frustration

Rings a bell.


Gudanov - Jan 26, 2018 5:28:33 am PST #3968 of 4671
Coding and Sleeping

What would people think of moving hosting from dreamhost to digitalocean? They recently lowered the price of their VMs so a $10 a month VM would probably be plenty. A $5 a month VM might even be enough.

I think it would make things a bit easier from a technical matter. Partly because I'd kinda like to change the database to PostgreSQL from MySQL for reasons. I'm also thinking of using Rails instead of PHP for the backend because there is a lot more security baked in with Rails. Without realizing it, I've structured the PHP to be an awful lot a Rails app already and it makes me think I might as well go Rails and get those baked-in features.


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.