Skip to content

Commit

Permalink
How to run more than one PXE in the sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
catmcgee committed Jan 16, 2024
1 parent 087cde6 commit 2dc5da7
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docs/docs/dev_docs/pxe/run_more_than_one_pxe_sandbox.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
---
title: How to run more than one PXE in the sandbox
---

When you run the sandbox, the Aztec node and PXE have their own http server. This makes it possible to run two PXEs on your local machine, which can be useful for testing that notes are accurately stored and remaining private in their respective PXEs.

We are working on a better solution for this so expect an update soon, but currently you can follow this guide.

## Run the sandbox in one terminal

Rather than use the usual command, run:
```bash
docker-compose up
```
This removes any other arguments, allowing you to ensure an isolated environment for the sandbox so it doesn't interfere with another PXE.

## Run PXE mode in another terminal

In another terminal, run:

```bash
docker-compose run -e MODE=pxe -e PXE_PORT=8085 -e AZTEC_NODE_URL='http://aztec-aztec-1:8079' -e TEST_ACCOUNTS='false' -p 8085:8085 aztec
```
This does a few things:
* Starts in PXE mode
* Passes the current Aztec node URL
* Does not load new test accounts
* Sets a port to listen on
* Only runs Aztec PXE, not Ethereum

This command uses the default ports, so they might need to be changed depending on yuor configuration.


0 comments on commit 2dc5da7

Please sign in to comment.