You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After starting the subnet, you need to start the servers. To allow outside users or services to access the services on the server, you need to expose the following ports. Here are the steps:
7
+
8
+
Update the following parameters in `common.env`, replacing `<YOUR_SERVER_IP>` with your actual server IP address or domain name:
9
+
```bash
10
+
VITE_SUBNET_URL=http://<YOUR_SERVER_IP>:5213
11
+
VITE_SUBNET_RPC=http://<YOUR_SERVER_IP>:8545
12
+
```
13
+
14
+
Modify the ports in `docker-compose.yml` as follows:
Copy file name to clipboardExpand all lines: docs/subnet/install_guide/launch_subnet.md
-53Lines changed: 0 additions & 53 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,59 +60,6 @@ title: Launch a Subnet
60
60
61
61
<!-- 6. (Optional) if you deployed Subswap, check out the usage here: -->
62
62
63
-
### Multiple Machines Deployment
64
-
65
-
To deploy a subnet with multiple machines , access the Deployment Wizard in your browser and follow these steps:
66
-
67
-
1. Select "Custom Subnet" and click the button:
68
-

69
-
70
-
2. Configure the subnet options as per your requirements and fill in the details:
71
-

72
-
73
-
3. Click the `Submit` button. You should see a success message:
74
-

75
-
76
-
4. Return to the Deployment Wizard page ,continue with [Deployment Wizard](launch_subnet/#deploy-with-wizard-ui) step 2,click the `Start` button.
77
-

78
-
79
-
5. Copy the generated files `subnetX.env`, `docker-compose.yml`, and `genesis.json` to the other machines (ensure you modify the paths as necessary).
80
-
You need to copy and move the following files:
81
-

82
-
83
-
6. Edit the `generated/docker-compose.yml` file, removing the subnet's network configuration (**except for the subnet configuration on machine1, which is the machine where you ran `start.sh`**).
7. On `machineX`, place the `subnetX.env`, `docker-compose.yml`, and `genesis.json` files in the same directory. Then, use the following commands to start the corresponding subnet:
8. Back in the Deployment Wizard, you can monitor the number of peers in the Status column on the left, or use the script `generated/scripts/check-peer.sh` to confirm if the multi-machine deployment was successful:
95
-
96
-

97
-
98
-
## Exposing Subnet Services and Frontend
99
-
100
-
Update the following parameters in `common.env`, replacing `<YOUR_SERVER_IP>` with your actual server IP address or domain name:
101
-
```bash
102
-
VITE_SUBNET_URL=http://<YOUR_SERVER_IP>:5213
103
-
VITE_SUBNET_RPC=http://<YOUR_SERVER_IP>:8545
104
-
```
105
-
106
-
Modify the ports in `docker-compose.yml` as follows:
107
-
```yaml
108
-
frontend:
109
-
ports:
110
-
- "0.0.0.0:5214:5214"
111
-
```
112
-
113
-
Visit the Deployment Wizard and restart the subnet and services in the Deployment Wizard to apply these settings.
To deploy a subnet with multiple machines, you need to follow the first two steps of [Deploy With Wizard UI](../launch_subnet/#deploy-with-wizard-ui), pull and run the `start.sh` script, access the Deployment Wizard in your browser, and follow these steps:
8
+
9
+
1. Select "Custom Subnet" and click the button:
10
+

11
+
12
+
2. Configure the subnet options as per your requirements and fill in the details:
13
+

14
+
15
+
3. Click the `Submit` button. You should see a success message:
16
+

17
+
18
+
4. Return to the Deployment Wizard page ,continue with [Deployment Wizard](../launch_subnet/#deploy-with-wizard-ui) step 2,click the `Start` button.
19
+

20
+
21
+
5. Copy the generated files `subnetX.env`, `docker-compose.yml`, and `genesis.json` to the other machines (ensure you modify the paths as necessary).
22
+
You need to copy and move the following files:
23
+

24
+
25
+
6. Edit the `generated/docker-compose.yml` file, removing the subnet's network configuration (**except for the subnet configuration on machine1, which is the machine where you ran `start.sh`**).
7. On `machineX`, place the `subnetX.env`, `docker-compose.yml`, and `genesis.json` files in the same directory. Then, use the following commands to start the corresponding subnet:
8. Back in the Deployment Wizard, you can monitor the number of peers in the Status column on the left, or use the script `generated/scripts/check-peer.sh` to confirm if the multi-machine deployment was successful:
0 commit comments