Auto Update Your Lithium Apps From GitHub

Just a simple route!

Posted 2 years ago by Tom Maiaroto.

So I wanted to quickly share this tip. It's too long for a Twitter status update, but it's short. I'm sure most of you are well aware of GitHub's service hooks, yes? Well, the most basic one is the WebHook. This basically makes an HTTP request to the URL(s) you provide. In Lithium, you can create a simple route to run a git pull and update command. You'll want to obfuscate the route so no one can, easily, access it. I don't deem it a security threat (I also typically only do this for dev sites just to avoid oopsies when pushing to the... Read More

My Standard Server Setup

Configurations with Rackspace Cloud Servers

Posted 2 years ago by Tom Maiaroto.

I figured I would share my typical web application server setup while I've recently been on the subject of hosting. This is my mission-critical, scalable, redundant, (did I miss anything?) setup. You'll need 5 servers, along with a cloud load balancer, to pull it off with Rackspace. You can use smaller servers to cut down on costs as you see fit, but I typically start with 2GB for a production project. (2x) Web/application servers (I use Nginx if in need of a web server) (2x) Database servers (I use MongoDB) master/slave (1x)... Read More

PaaS on Them

Not so "Enterprise" Ready

Posted 2 years ago by Tom Maiaroto.

So I've been giving some PaaS services a try. To be completely fair I don't want to mention which at this time. I may revisit others to get a more comprehensive comparison but I've been turned off for now. I've been hosting my small side project, Virality Index, on a PaaS to give it a test. The most attractive thing about a PaaS is the zero-config. You launch an instance, attach any databases, etc. and go. You can deploy your code from the command line which is very comfortable alongside Git. Then, it goes into the "cloud" and is... Read More

Using MongoDB Replica Sets With the Lithium Framework

It's pretty flexible now with the latest PHP driver once you figure out the changes.

Posted 2 years ago by Tom Maiaroto.

So I noticed on a recent job that my secondary database wasn't being used by my code. I was confused because in the past it always did. Though it was with the "slaveOk" setting and I know that things changed since then in the PHP driver but I thought Lithium automatically send reads to the secondary (if configured in the connection). It does not. However, you still need to make sure you pass all servers you wish to connect to in the connection configuration. Don't forget you can pass host names and the port number is optional in this... Read More

Making Content Viral

Observations of what really helps

Posted 2 years ago by Tom Maiaroto.

One thing that's been difficult to understand throughout my research is "why" certain content ends up viral. What's so great about some poor girl burning her hair? Or any of the music videos or sappy commercials with horses? Sometimes it's by chance and this magic is where many people will try to claim authority. This is where you'll end up possibly paying for services that are unfounded. There's many of them. The reality of it is, that this is classic advertising and PR. Just because we now have social networks, does not mean the "old way"... Read More

Search for Posts

Popular Labels

social media virality score general internet web development reviews and opinions php web tools hosting lithium web design