Use different ceramic server per environment (#46)

* Set ceramic host per env

* Set ceramic url with glaze
This commit is contained in:
Anatoly Laskaris 2022-07-15 23:10:12 +03:00 committed by GitHub
parent c0f77daf65
commit 35209b5e0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View File

@ -24,7 +24,7 @@
"user": "root",
"bootstrap": "164.90.171.139",
"management_key": "12D3KooWFRgVmb1uWcmCbmJqLr8tBQghL6ysSpK2VyE2VZbaQ6wy",
"ceramic_host": "http://stage.fluence.dev:7007",
"ceramic_host": "https://ceramic-krasnodar.fluence.dev",
"caddy": [
{ "host": "kras-00.fluence.dev", "ports": [9001, 9990, 5001, 5550, 8880, 8001], "addr": "164.90.171.139" },
{ "host": "kras-01.fluence.dev", "ports": [9001, 5001, 8001], "addr": "178.128.194.190" },
@ -88,7 +88,7 @@
"user": "root",
"bootstrap": "165.227.164.206",
"management_key": "12D3KooWFRgVmb1uWcmCbmJqLr8tBQghL6ysSpK2VyE2VZbaQ6wy",
"ceramic_host": "http://stage.fluence.dev:7007",
"ceramic_host": "https://ceramic-testnet.fluence.dev",
"caddy": [
{ "host": "net01.fluence.dev", "ports": [9001, 9990, 5550, 5001, 8880, 8001], "addr":"165.227.164.206" },
{ "host": "net02.fluence.dev", "ports": [9001, 5001, 8001], "addr":"138.197.189.50" },
@ -143,7 +143,7 @@
"/ip4/134.209.186.43/tcp/7770"
],
"management_key": "12D3KooWFRgVmb1uWcmCbmJqLr8tBQghL6ysSpK2VyE2VZbaQ6wy",
"ceramic_host": "http://stage.fluence.dev:7007",
"ceramic_host": "https://ceramic-stage.fluence.dev",
"caddy": [
{
"host": "stage.fluence.dev",

View File

@ -3,6 +3,7 @@
if [[ -z $CERAMIC_HOST ]]; then
echo "\$CERAMIC_HOST is unset. Skipping ceramic CLI initialization"
else
echo "Setting ceramicHost to $CERAMIC_HOST"
/usr/bin/ceramic config set ceramicHost "$CERAMIC_HOST"
echo "Setting ceramic url to to $CERAMIC_HOST"
ceramic config set ceramicHost "$CERAMIC_HOST"
glaze config:set ceramic-url "$CERAMIC_HOST"
fi