Fix steps to update deploy backend
This commit is contained in:
parent
71aa803de8
commit
a9a5f56e20
@ -351,17 +351,18 @@ Instructions to reset / update the deployments
|
||||
laconic-so deployment --dir webapp-deployer start
|
||||
```
|
||||
|
||||
- Load context for k8s
|
||||
* Load context for k8s
|
||||
|
||||
```bash
|
||||
kubie ctx vs-narwhal
|
||||
```
|
||||
|
||||
- Copy the GPG key file to the webapp-deployer container
|
||||
* Copy the GPG key file to the webapp-deployer container
|
||||
|
||||
```bash
|
||||
# Get the webapp-deployer pod id
|
||||
laconic-so deployment --dir webapp-deployer ps
|
||||
|
||||
|
||||
# Expected output
|
||||
# Running containers:
|
||||
# id: default/laconic-096fed46af974a47-deployment-644db859c7-snbq6, name: laconic-096fed46af974a47-deployment-644db859c7-snbq6, ports: 10.42.2.11:9555->9555
|
||||
@ -394,7 +395,7 @@ Instructions to reset / update the deployments
|
||||
laconic-so build-webapp --source-repo ~/cerc/webapp-deployment-status-ui
|
||||
```
|
||||
|
||||
- Modify `/srv/service-provider/webapp-ui/config.env` like [this Pull Request](https://git.vdb.to/cerc-io/webapp-deployment-status-ui/pulls/6) but with your host details.
|
||||
* Modify `/srv/service-provider/webapp-ui/config.env` like [this Pull Request](https://git.vdb.to/cerc-io/webapp-deployment-status-ui/pulls/6) but with your host details.
|
||||
|
||||
* Restart the deployment:
|
||||
|
||||
@ -406,7 +407,7 @@ Instructions to reset / update the deployments
|
||||
|
||||
## Deploy Backend
|
||||
|
||||
* Deployment dir: `/srv/deploy-backend/backend-deployment`
|
||||
* Deployment dir: `/srv/deploy-backend/laconic-backend-deployment`
|
||||
|
||||
* If code has changed, fetch and build with updated source code:
|
||||
|
||||
@ -430,22 +431,23 @@ Instructions to reset / update the deployments
|
||||
docker login $CONTAINER_REGISTRY_URL --username $CONTAINER_REGISTRY_USERNAME --password $CONTAINER_REGISTRY_PASSWORD
|
||||
|
||||
# Push backend images
|
||||
laconic-so deployment --dir backend-deployment push-images
|
||||
laconic-so deployment --dir laconic-backend-deployment push-images
|
||||
```
|
||||
|
||||
* Update the configuration if required in `backend-deployment/configmaps/config/prod.toml`
|
||||
* Update the configuration if required in `laconic-backend-deployment/configmaps/config/prod.toml`
|
||||
|
||||
* Restart the deployment:
|
||||
|
||||
```bash
|
||||
laconic-so deployment --dir backend-deployment stop
|
||||
laconic-so deployment --dir laconic-backend-deployment stop
|
||||
|
||||
laconic-so deployment --dir backend-deployment start
|
||||
laconic-so deployment --dir laconic-backend-deployment start
|
||||
```
|
||||
|
||||
## Deply Frontend
|
||||
|
||||
* Follow steps from [deployments-from-scratch.md](./deployments-from-scratch.md#deploy-frontend) to deploy the snowball frontend
|
||||
* Follow steps similar to [deployments-from-scratch.md](./deployments-from-scratch.md#deploy-frontend) to deploy the snowball frontend
|
||||
* Use auhority `laconic-deploy` and the script `deploy-frontend.sh` instead
|
||||
|
||||
## Fixturenet Eth
|
||||
|
||||
|
||||
@ -456,7 +456,7 @@ laconic-so deployment --dir webapp-deployer stop
|
||||
* Update deployer config (`webapp-deployer/config.env`):
|
||||
|
||||
```bash
|
||||
# Update FQDN policy to "all1ow" for allowing custom domains
|
||||
# Update FQDN policy to "allow" for allowing custom domains
|
||||
export FQDN_POLICY="allow"
|
||||
|
||||
# Set IP of your k8s cluster (IP set in DNS records for users)
|
||||
@ -496,7 +496,7 @@ laconic-so deployment --dir webapp-deployer stop
|
||||
kubectl cp <path-to-your-gpg-private-key> $POD_ID:/app
|
||||
kubectl cp <path-to-your-gpg-public-key> $POD_ID:/app
|
||||
|
||||
# Required everytime you stop and start the deployer
|
||||
# Required every time you stop and start the deployer
|
||||
```
|
||||
|
||||
* Check logs:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user