Update steps to update console deployment
This commit is contained in:
parent
4515fba997
commit
e76389b47b
@ -56,42 +56,37 @@ Instructions to reset / update the deployments
|
||||
|
||||
## laconic-console
|
||||
|
||||
* Deployment dir: `/srv/console/laconic-console-deployment`
|
||||
* Deployment dir: `/srv/console/laconic-console-testnet2-deployment`
|
||||
|
||||
* If code has changed, fetch and build with updated source code:
|
||||
* Set deployment directory in a variable:
|
||||
|
||||
```bash
|
||||
# testnet-onboarding-app source
|
||||
cd ~/cerc/laconic-console
|
||||
|
||||
# Pull latest changes
|
||||
git pull
|
||||
|
||||
# Checkout to the latest tag (https://git.vdb.to/cerc-io/laconic-console/tags)
|
||||
git checkout <tag>
|
||||
|
||||
# Rebuild the containers
|
||||
cd /srv/console
|
||||
|
||||
laconic-so --stack ~/cerc/testnet-laconicd-stack/stack-orchestrator/stacks/laconic-console build-containers --force-rebuild
|
||||
CONSOLE_DEPLOYMENT=/srv/console/laconic-console-testnet2-deployment
|
||||
```
|
||||
|
||||
* Update the configuration, if required in `laconic-console-deployment/config.env`:
|
||||
* Update the configuration:
|
||||
|
||||
```bash
|
||||
nano $CONSOLE_DEPLOYMENT/config.env
|
||||
```
|
||||
|
||||
```bash
|
||||
# Laconicd (hosted) GQL endpoint
|
||||
LACONIC_HOSTED_ENDPOINT=https://laconicd-mainnet.laconic.com/graphql
|
||||
LACONIC_HOSTED_ENDPOINT=https://laconicd-mainnet.laconic.com
|
||||
|
||||
# laconicd chain id
|
||||
CERC_LACONICD_CHAIN_ID=laconic-mainnet
|
||||
```
|
||||
|
||||
* Restart the deployment:
|
||||
|
||||
```bash
|
||||
laconic-so deployment --dir laconic-console-deployment stop
|
||||
laconic-so deployment --dir $CONSOLE_DEPLOYMENT stop
|
||||
|
||||
laconic-so deployment --dir laconic-console-deployment start
|
||||
laconic-so deployment --dir $CONSOLE_DEPLOYMENT start
|
||||
|
||||
# Follow logs for console container
|
||||
laconic-so deployment --dir laconic-console-deployment logs console -f
|
||||
laconic-so deployment --dir $CONSOLE_DEPLOYMENT logs console -f
|
||||
```
|
||||
|
||||
* The laconic console can now be viewed at <https://console-mainnet.laconic.com>
|
||||
|
Loading…
Reference in New Issue
Block a user