How Can We Help?

Search for answers or browse our knowledge base.


Still need help? Ask our Service Desk!

Categories
< All Topics
Print

How to upgrade a Bare Metal node

Upgrade Bare Metal

Stop pm2 gny process:

pm2 stop gny

Get newest gny version:

# leave gny directory
cd ..

# delete gny directory
rm -rf gny

# clone repository
git clone https://github.com/gnyio/gny-experiment gny-experiment && cd $_

Checkout the corresponding branch:

:::: tabs

::: tab mainnet

git checkout mainnet

:::

::: tab testnet

git checkout testnet

:::

::::

Compile project

npm ci && 
npm run lerna:bootstrap && 
npm run lerna:tsc

Restart GNY node

# start gny
pm2 start --name gny npm -- start
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
How Can We Improve This Article?
Table of Contents