It seems to me that everyone is starting to do this, and I thought that I should jump on the bandwagon as well. I don’t really know why I did it, but I am now running this bad boy with Git, BitBucket, and a shell script that runs to automatically pull the repository on my server. It seems to work pretty well so far, but I have only been using for a few hours.
The reason that I set this up is because I have made a lot of changes to theme of my website, and I got tired of having to use FTP/SFTP to put the files there. It does not seem like the efficient thing to do, and I didn’t want to do that anymore. After searching on the Internet for an hour or so I found a solution using a script called deploy.php, but I did not like that anyone could get access to it.
There had to be a better way, and I think that I found it using the Linux cronjob and bash script to run some commands for me. It might put some minimal extra load on my VPS, but I don’t think that it will be noticeable. I would like to set up something like WP Stack, but it seems like it is a pain to set up. I might look into it more later, but I think that I will stick with this for a few days or weeks. It is way better than what I have.
The only bad thing about doing this is having to update my plugins in development first. I am not super thrilled about that. I guess that I could exclude that directory, but I have a custom plugin for this site that I do some work on at times. It handles my Custom Post Types, and I try to tweak it to make it slightly better now and then. I am also not sure how to handle the database changes that the plugin might need to make. I guess I will have to find some way to dump the database and then import it to the production server. I do not want to get into the habit of taking a dump and uploading it constantly. That is not fun!