Add port mappings

This commit is contained in:
Prathamesh Musale 2024-08-09 15:44:00 +05:30
parent 688ae18249
commit 481f370763
5 changed files with 39 additions and 21 deletions

View File

@ -1,4 +1,4 @@
# deployments-from-scratch
# Create deployments from scratch (for reference only)
## Login
@ -657,3 +657,14 @@
* The laconic console can now be viewed at <https://loro-console.laconic.com>
</details>
## Domains / Port Mappings
```bash
laconicd.laconic.com -> 26657
laconicd.laconic.com/api -> 9473/api
faucet.laconic.com -> 4000
loro-signup.laconic.com -> 3000
wallet.laconic.com -> 5000
loro-console.laconic.com -> 4001
```

View File

@ -1,4 +1,4 @@
# stage0-to-stage1
# Halt stage0 and start stage1
Once all the participants have completed their onboarding, stage0 laconicd chain can be halted and stage1 chain can be initialized and started
@ -64,6 +64,8 @@ Once all the participants have completed their onboarding, stage0 laconicd chain
* Copy over the generated genesis file (`.json`) containing the onboarding module state with funded participants to data directory in stage1 deployment (`stage1-deployment/data/genesis-config`):
```bash
cd /srv/laconicd
cp ~/cerc/fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd/output/genesis.json stage1-deployment/data/genesis-config/genesis.json
```

View File

@ -1,4 +1,4 @@
# update-deployments
# Update deployments after code changes
Instructions to reset / update the deployments
@ -16,7 +16,7 @@ Instructions to reset / update the deployments
* Deployment dir: `/srv/laconicd/stage0-deployment`
* Fetch and build with updated source code:
* If code has changed, fetch and build with updated source code:
```bash
# laconicd source
@ -34,7 +34,7 @@ Instructions to reset / update the deployments
laconic-so --stack ~/cerc/fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd build-containers --force-rebuild
```
* Reset the data directory:
* Optionally, reset the data directory (this will remove all stage0 data!):
```bash
# Stop the deployment
@ -45,7 +45,7 @@ Instructions to reset / update the deployments
mkdir stage0-deployment/data/laconicd-data
```
* Restart the deployment:
* Start the deployment:
```bash
laconic-so deployment --dir stage0-deployment start
@ -54,7 +54,7 @@ Instructions to reset / update the deployments
laconic-so deployment --dir stage0-deployment logs laconicd -f
```
* Since the stage0 laconicd chain has been reset, reset the faucet deployment with new faucet key:
* If the stage0 laconicd chain has been reset, reset the faucet deployment too with new faucet key:
```bash
cd /srv/faucet
@ -65,9 +65,14 @@ Instructions to reset / update the deployments
CERC_FAUCET_KEY=$FAUCET_ACCOUNT_PK
EOF
# Restart the deployment
laconic-so deployment --dir laconic-faucet-deployment stop
# Stop the deployment
laconic-so deployment --dir laconic-faucet-deployment stop --delete-volumes
# Remove and recreate the required data dir
sudo rm -rf laconic-faucet-deployment/data/faucet-data
mkdir laconic-faucet-deployment/data/faucet-data
# Start the deployment
laconic-so deployment --dir laconic-faucet-deployment start
```
@ -75,7 +80,7 @@ Instructions to reset / update the deployments
* Deployment dir: `/srv/app/onboarding-app-deployment`
* Fetch and build with updated source code:
* If code has changed, fetch and build with updated source code:
```bash
# testnet-onboarding-app source
@ -93,7 +98,7 @@ Instructions to reset / update the deployments
laconic-so --stack ~/cerc/testnet-onboarding-app-stack/stack-orchestrator/stacks/onboarding-app build-containers --force-rebuild
```
* Update the configuration if required:
* Update the configuration, if required:
```bash
cat <<EOF > onboarding-app-deployment/config.env
@ -125,7 +130,7 @@ Instructions to reset / update the deployments
* Deployment dir: `/srv/wallet/laconic-wallet-web-deployment`
* Fetch and build with updated source code:
* If code has changed, fetch and build with updated source code:
```bash
# testnet-onboarding-app source
@ -143,7 +148,7 @@ Instructions to reset / update the deployments
laconic-so --stack ~/cerc/laconic-wallet-web/stack/stack-orchestrator/stack/laconic-wallet-web build-containers --force-rebuild
```
* Update the configuration if required:
* Update the configuration, if required:
```bash
cat <<EOF > laconic-wallet-web-deployment/config.env
@ -168,7 +173,7 @@ Instructions to reset / update the deployments
* Deployment dir: `/srv/laconicd/stage1-deployment`
* Fetch and build with updated source code:
* If code has changed, fetch and build with updated source code:
```bash
# laconicd source
@ -186,7 +191,7 @@ Instructions to reset / update the deployments
laconic-so --stack ~/cerc/fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd build-containers --force-rebuild
```
* Reset the data directory:
* Optionally, reset the data directory:
```bash
# Stop the deployment
@ -199,7 +204,7 @@ Instructions to reset / update the deployments
mkdir stage1-deployment/data/genesis-config
```
* Update the configuration if required:
* Update the configuration, if required:
```bash
cat <<EOF > stage1-deployment/config.env
@ -216,7 +221,7 @@ Instructions to reset / update the deployments
* Deployment dir: `/srv/console/laconic-console-deployment`
* Fetch and build with updated source code:
* If code has changed, fetch and build with updated source code:
```bash
# testnet-onboarding-app source
@ -234,7 +239,7 @@ Instructions to reset / update the deployments
laconic-so --stack ~/cerc/testnet-laconicd-stack/stack-orchestrator/stacks/laconic-console build-containers --force-rebuild
```
* Update the configuration if required:
* Update the configuration, if required:
```bash
cat <<EOF > laconic-console-deployment/config.env

View File

@ -244,7 +244,7 @@ laconic-so deployment --dir laconic-console-deployment start
--from <key-name>'
```
* View staking validators:
* View validators:
```bash
laconic-so deployment --dir testnet-laconicd-deployment exec laconicd "laconicd query staking validators"

View File

@ -161,7 +161,7 @@ laconic-so deployment --dir testnet-laconicd-deployment start
# `catching_up: false` indicates that node is completely synced
```
* After the node has caught up, view current list of staking validators:
* After the node has caught up, view current list of validators:
```bash
laconic-so deployment --dir testnet-laconicd-deployment exec laconicd "laconicd query staking validators"
@ -243,7 +243,7 @@ laconic-so deployment --dir testnet-laconicd-deployment start
--from $KEY_NAME"
```
* View staking validators:
* View validators:
```bash
laconic-so deployment --dir testnet-laconicd-deployment exec laconicd "laconicd query staking validators"