Compare commits
1 Commits
main
...
pm-handle-
| Author | SHA1 | Date | |
|---|---|---|---|
| 07d7f02720 |
@ -1,8 +1,7 @@
|
||||
# Webapp Deployer
|
||||
# webapp-deployment-status-api
|
||||
|
||||
This service is run by Laconic Network Service Providers and listens for ApplicationDeploymentRequests on the Laconic Registry. When a valid Request is published onchain, this service will build and host the application on the Service Providers' Kubernetes cluster.
|
||||
|
||||
For setup, see [here](https://git.vdb.to/cerc-io/testnet-ops/src/branch/main/service-provider-setup$0)
|
||||
This API provides status information about webapp deployment requests and a mechanism for upload encrypted configuration
|
||||
files used by those requests.
|
||||
|
||||
## Build and Run
|
||||
|
||||
@ -139,6 +138,4 @@ CHECK_INTERVAL=15
|
||||
AUCTION_CHECK_INTERVAL=10
|
||||
HANDLE_AUCTION_REQUESTS=true
|
||||
AUCTION_BID_AMOUNT=50000
|
||||
|
||||
DEPLOYER_GITHUB_TOKEN="optional, set for deploying private repos"
|
||||
```
|
||||
|
||||
@ -159,7 +159,9 @@ export class RegHelper {
|
||||
}
|
||||
|
||||
status.app = r.attributes.application;
|
||||
const hostname = r.attributes.dns ?? generateHostnameForApp(app);
|
||||
|
||||
const dnsList: string[] = r.attributes.dns ? r.attributes.dns.split(",") : [];
|
||||
const hostname = dnsList.length ? dnsList[dnsList.length - 1] : generateHostnameForApp(app);
|
||||
|
||||
if (deploymentsByRequest.has(r.id)) {
|
||||
const deployment = deploymentsByRequest.get(r.id);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user