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

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

Update to Lithium Bootstrap

Posted 2 years ago by Tom Maiaroto.

I've made some updates to li3_bootstrap. Some important ones. First off, I've replaced TinyMCE with CKEditor and plan to add file/image upload support in there soon. This will be on li3b_core so any other library can hook into it. Of course this is biased and will use MongoDB. Some work will need to be done to get it to work with MySQL...Namely, disabling the feature and re-building it to work by uploading to disk. I'm making a lot of hard decisions on the direction here and will not support MySQL personally. That's not to say you... Read More

MongoDB and Lithium - PHP "Advent" Article

Happy holidays!

Posted 2 years ago by Tom Maiaroto.

So I was asked to write a little "advent" article for everyone about MongoDB and Lithium and so I did. I'm not going to repost it here on my blog though. You'll need to hop on over to Sphere and read it there. I cover quite a bit in that article and it's a culmination of a few other articles I've had on my blog in the past. I know it's a lot to digest, but I hope it makes some good reference and starting points for people. If you wanted to know how to run any sort of aggregation tasks in MongoDB such as; map/reduce, group queries, or... 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