Setting Up Your Development Environment - woocommerce/woocommerce-gateway-amazon-pay GitHub Wiki
We use and recommend Docker for development for the Amazon Pay extension.
To set up your development environment:
- 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
To shutdown:
- 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.
Troubleshooting
- `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.
- Another container may be running on port 8082 already. Use