Setup env variable:
export SERVICE=
Find containers
inside service
:
docker service ls | grep $SERVICE
Find nodes
that running containers
:
docker service ps $SERVICE_NAME
Rpc:
New version:
killall crond
export NEW_VERSION=
Check environment variable:
cat ~/env.sh
rm -rf $HOME/upgrading.*
cd
wget https://raw.githubusercontent.com/notional-labs/cosmosia/main/rpc/scripts/upgrading.sh
sh ./upgrading.sh $NEW_VERSION
Wait till synced.
Check logs
tail -f -n100 /var/log/chain.err.log
Edit env.sh
to new version:
crond
pacman -Sy --noconfirm vim
vim $HOME/env.sh
Snapshot:
New version:
killall crond
export NEW_VERSION=
Check environment variable:
cat ~/env.sh
rm -rf $HOME/upgrading.*
cd
wget https://raw.githubusercontent.com/notional-labs/cosmosia/main/rpc/scripts/upgrading.sh
sh ./upgrading.sh $NEW_VERSION
Wait till synced.
Check logs
tail -f -n100 /var/log/chain.err.log
Turn on crond and edit env.sh
to new version:
crond
pacman -Sy --noconfirm vim
vim $HOME/env.sh
Go to github pull
fork repo cosmosia ->> Sync Fork
git pull
Chain:
export CHAIN=
vi ~/cosmosia/data/$CHAIN.ini
Update:
version
Then commit
->> push
->> contribute
->> pull request
->> merge