Yesterday morning I tried out the new MAMP Pro 3.0, and I must say that it is awesome. Unlike the old MAMP, I can quickly spin up new development sites with custom urls like, “www.themightymo.dev” using a simple gui interface. Additionally, it seamlessly integrates into my existing git workflow, because I can point the web root for a specific url (such as www.themightymo.dev) to my local git repository. So there is no need to clone the repository into the “htdocs” folder as I used to have to do with the old MAMP.
Additionally, MAMP Pro provides a simple way to create self-signed SSL certificates so my local installs work fine with clones of my “https” sites (such as www.themightymo.com).
The other tool I was playing with over the last couple of weeks is called, “Vagrant“, specifically the “VVV” distribution. It is, in some ways, more feature-rich than MAMP Pro in that it allows for exact clones of production servers. This is awesome for high value sites on custom setups. But for 99% of websites on the internet, it is overkill.
With Vagrant, there is no gui built in – it’s all command line. This gives users the fine-grain control they need, but it has a steep learning curve, and, for beginners, it’ll be next-to-impossible to get up-and-running. I did find a gui-ish script as well as some helpful add-on command line libraries but getting those set up was a big learning curve as well. With MAMP Pro, it’s as simple as downloading a file and double-clicking it.
So, while Vagrant has its awesome stuff to be sure and will be really useful in some specific situations, I will be using MAMP Pro for most of the websites I work on and only pulling out Vagrant where it’s absolutely necessary.
More posts from themightymo.com
How to Connect a GoDaddy Site to ManageWP
GoDaddy owns ManageWP, and, strangely, they make it very difficult to add GoDaddy-managed WordPress sites to their ManageWP service. Thankfully, there’s a quick workaround: Visit https://yoursite.com/wp-admin/plugins.php?showWorker=1 — This will make the ManageWP “Worker” plugin visible. Copy the connection info from the ManageWP Worker plugin. Add the site per-normal on ManageWP. That’s it! I hope this…
How to check if your current page is the wp-login.php page
I realized this morning that my TMM Maintenance Mode WordPress plugin had a bug that was causing the wp-login.php page to be inaccessible. The solution was to write a simple function that checks whether or not we’re currently on a login page, and then add a call to that function in my code. Here’s the…
WooCommerce Product Image Gallery Not Loading with WP Rocket Active
Today I updated a WooCommerce site, and everything worked fine, except for the images on product pages – they were not displaying at all. After a lot of trial & error, I realized that WP Rocket was to blame. I’m not sure exactly what the issue was (though my hunch is that it had to…