-
Notifications
You must be signed in to change notification settings - Fork 24
Setting Up Your Development Environment
Allen Snook edited this page Jun 19, 2020
·
3 revisions
We use and recommend Docker for development for the Amazon Pay extension.
- Clone the Amazon Pay repository
- Ensure Docker is installed (Docker Desktop is a good option for developers)
- From the root of this project, run
docker-compose up -d
- Once http://localhost:8082 displays the WordPress install screen, run
./bin/docker-setup.sh
- The fully configured site can now be accessed on http://localhost:8082
- The prompt to run the setup wizard can be dismissed unless there is something specific you would like to configure
- Use
docker-compose down
to stop the running containers - The state of the environment will be persisted in
docker/wordpress
anddocker/data
. To restart the environment simply rundocker-compose up -d
again. To start afresh, delete these folders and letdocker-compose up
re-create them.
- `ERROR: for woocommerce_amazon_pay_wordpress Cannot start service wordpress: driver failed programming external connectivity on endpoint woocommerce_amazon_pay_wordpress (...): Bind for 0.0.0.0:8082 failed: port is already allocated
- Another container may be running on port 8082 already. Use
docker ps
to list all running containers and then usedocker-compose down
in the root of that project to stop it before attempting to start this container again.
WooCommerce is an open source eCommerce platform built for WordPress and lovingly crafted by Automattic and the WooCommerce community ❤