Add ops instructions to setup snowball frontend and backend #32
@ -12,7 +12,7 @@
|
||||
dbPath = "/data/db/snowball"
|
||||
|
||||
[gitHub]
|
||||
webhookUrl = ""
|
||||
webhookUrl = "https://snowball-backend.pwa.laconic.com"
|
||||
[gitHub.oAuth]
|
||||
clientId = ""
|
||||
clientSecret = ""
|
||||
@ -30,12 +30,12 @@
|
||||
[registryConfig]
|
||||
fetchDeploymentRecordDelay = 5000
|
||||
checkAuctionStatusDelay = 5000
|
||||
restEndpoint = ""
|
||||
gqlEndpoint = ""
|
||||
chainId = ""
|
||||
restEndpoint = "https://laconicd.laconic.com"
|
||||
gqlEndpoint = "https://laconicd.laconic.com/api"
|
||||
chainId = "laconic_9000-2"
|
||||
privateKey = ""
|
||||
bondId = ""
|
||||
authority = ""
|
||||
authority = "snowballtools"
|
||||
[registryConfig.fee]
|
||||
gasPrice = "1alnt"
|
||||
|
||||
|
@ -1234,12 +1234,14 @@
|
||||
|
||||
</details>
|
||||
|
||||
<details open>
|
||||
<summary>snowball-backend</summary>
|
||||
|
||||
## Snowball Backend
|
||||
|
||||
* Stack: <https://git.vdb.to/cerc-io/snowballtools-base-api-stack/src/branch/main/stack-orchestrator/stacks/snowballtools-base-backend>
|
||||
|
||||
* Source repos:
|
||||
* <https://git.vdb.to/cerc-io/snowballtools-base>
|
||||
* Source repo: <https://git.vdb.to/cerc-io/snowballtools-base>
|
||||
|
||||
* Target dir: `/srv/snowball/snowball-deployment`
|
||||
|
||||
@ -1316,6 +1318,8 @@
|
||||
wget -O /srv/snowball/snowball-deployment/data/config/local.toml https://git.vdb.to/cerc-io/testnet-laconicd-stack/raw/branch/main/ops/configs/snowball-config.toml
|
||||
```
|
||||
|
||||
* Reserve authority `snowballtools` using a funded account and create a bond
|
||||
|
||||
* Update `/srv/snowball/snowball-deployment/data/config/local.toml` with the required values
|
||||
|
||||
### Start
|
||||
@ -1333,6 +1337,72 @@
|
||||
laconic-so deployment --dir snowball-deployment logs snowballtools-base-backend -f
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
<details open>
|
||||
<summary>snowball-frontend</summary>
|
||||
|
||||
## Snowball Frontend
|
||||
|
||||
* Source repo: <https://git.vdb.to/cerc-io/snowballtools-base>
|
||||
|
||||
### Setup
|
||||
|
||||
* On your local machine, clone the `snowballtools-base` repo:
|
||||
|
||||
```bash
|
||||
git clone git@git.vdb.to:cerc-io/snowballtools-base.git
|
||||
```
|
||||
|
||||
* Install dependencies:
|
||||
|
||||
```bash
|
||||
cd snowballtools-base
|
||||
yarn install
|
||||
```
|
||||
|
||||
* In the deployer package, create required env:
|
||||
|
||||
```bash
|
||||
cd packages/deployer
|
||||
cp .env.example .env
|
||||
```
|
||||
|
||||
Set the required variables:
|
||||
|
||||
```bash
|
||||
REGISTRY_BOND_ID=<bond-id>
|
||||
DEPLOYER_LRN=<target-deployer-lrn>
|
||||
```
|
||||
|
||||
* Update required laconic config:
|
||||
|
||||
```bash
|
||||
# Replace <user-pk> and <bond-id>
|
||||
cat <<EOF > config.yml
|
||||
services:
|
||||
registry:
|
||||
rpcEndpoint: https://laconicd.laconic.com
|
||||
gqlEndpoint: https://laconicd.laconic.com/api
|
||||
userKey: <user-pk>
|
||||
bondId: <bond-id>
|
||||
chainId: laconic_9000-2
|
||||
gasPrice: 1alnt
|
||||
EOF
|
||||
```
|
||||
|
||||
### Run
|
||||
|
||||
* Run frontend deployment script:
|
||||
|
||||
```bash
|
||||
./deploy-frontend.sh
|
||||
```
|
||||
|
||||
Follow deployment logs on the deployer UI
|
||||
|
||||
</details>
|
||||
|
||||
## Domains / Port Mappings
|
||||
|
||||
```bash
|
||||
|
@ -64,7 +64,7 @@
|
||||
# }
|
||||
```
|
||||
|
||||
* TODO: Get L1 tokens on your address
|
||||
* Request tokens for your address from Laconic
|
||||
|
||||
* Edit `nitro-vars.yml` and add the following variables:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user