This repository is an example of how to use Lagoon and WordPress. It uses our local development environment, Pygmy. For more information on Pygmy, check out the documentation. If you've never set up a Lagoon site locally, you'll need to get Docker and Pygmy set up, so read the documentation on that, it's quick!
- Open up a command line prompt.
- Clone the repo.
cd
into the repo.- Run
pygmy start
. - Run
docker compose build
. - Run
docker compose up -d
. - Run
docker compose exec cli composer install
- this will make sure all of the dependencies have been added inside of the container. - You should now have a fully functional local WordPress site at
wordpress-nginx.docker.amazee.io
!
This setup uses Composer with WordPress. If you're looking for more information on using Composer and WordPress together, go check out http://composer.rarst.net.
Note: When installing plugins, do not install them through the UI. Either use Composer or the WordPress CLI (included in this example). For more information on how to use the WordPress CLI, check out the documentation.
This example gives you a working local project using WordPress and Lagoon. For information about how to deploy your project using Lagoon, check out our documentation, watch our deployment demo, or chat with us!