XAMPP, which you may be surprised to find out is pronounced “Shamp”, is probably the oldest local development environment around and possibly the most complex. Let’s have a more in-depth look at these local WordPress development environments. I personally make use of WP-CLI on a daily basis and this is what’s keeping me from switching to Local completely from MAMP Pro. You’ll need to go through their application to open the SSH container separately for each site. You can’t directly just enter in the working directory and execute CLI commands. If you’re making use of WP-CLI in your daily workflow, you might dislike Local. The rest of the applications offer paid versions with more features. If you’re looking for a free alternative, XAMPP and Local are clear choices here. While Local and DesktopServer allow you to customize domain names for local sites, XAMPP and MAMP (unless you’re using Pro) don’t. The major differences between MAMP, XAMPP, DesktopServer, and Local is the ability to manage multiple sites and ease of use. There are quite a few different applications and tools that fit this bill, but for now we’ll be comparing the four GUI-based tools that seem to me to be the largest players in this space: XAMPP, MAMP (Pro), DesktopServer, and Local. We have another complete article covering Laravel Valet, VVV ( Vagrant), Chassis, etc. Note that I won’t be covering CLI-based local dev environments in this article. So we need something that’s easy to use and will do most of the heavy lifting for us. Most of all though, you shouldn’t have to be a sysadmin in order to be able to spin up, maintain, and tear down development environments on your local server. Being able to switch those on the fly or at least select different configs for different dev sites is extremely helpful. If you’re developing a WordPress theme or plugin, it’s also often necessary to make sure that your code runs well on different servers, under different versions of PHP and MySQL. For example: most devs work on more than one project, so it’s extremely helpful to be able to quickly spin up a new web server with dedicated urls. While many computers are capable of hosting a WordPress site without needing to install any extra packages, there are a few advantages that a dedicated local development environment can offer. It also greatly reduces the risk of making and breaking changes on a live web server. Developing in a local environment lets you make changes to dev sites quickly and easily without having to transfer files anywhere. Though testing was light on this project, we chose to use AVA as well as ESLint to keep the codebase clean and consistent.An easy-to-use local testing server is one of the most important tools in a WordPress developer’s utility belt. The #Frontend was implemented using React, Redux.js, Semantic UI React and the FeathersJS client. The #Backend was implemented using my favorite #Stack which consists of FeathersJS on top of Node.js and ExpressJS with PostgreSQL as the main database. We also implemented a dashboard app to handle user authentication/authorization, as well as a custom SSO server that runs on Heroku which allows experts to easily visit more than one instance without having to login repeatedly. For the production environment we chose to pull code from GitHub and build/push images using Jenkins and using Kubernetes to deploy to Amazon EC2. We chose to go with a #containerized approach leveraging Docker #containers with a local development environment setup with Docker Compose and nginx for container routing. Recently I have been working on an open source stack to help people consolidate their personal health data in a single database so that AI and analytics apps can be run against it to find personalized treatments.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |