Skip to content

Latest commit

 

History

History
65 lines (41 loc) · 1.03 KB

UPDATES.md

File metadata and controls

65 lines (41 loc) · 1.03 KB

Updates

1.1.5 to 1.1.6

This release contains a db patch.

1 - Update rsk-explorer-api code

git checkout 1.1.6

2 - Update dependencies

rm -rf node_modules
npm install

3 - Apply db patch

node dist/dbPatches/tokenData.js

Requisites

MongoDB Tools

1. Backup database

  
  cd rsk-explorer-api
  chmod +x ./dist/updates/backup-collections.sh
  ./dist/updates/backup-collections.sh -h

Example:

./dist/updates/backup-collections.sh -d /tmp/explorer-back -n newExplorerDB

Note: backup-collections.sh gets the DB information from the config.json file.

2. Restore collections to a new DB

Follow the instructions provided by backup-collections.sh Update the db.dbName field in config.json to use the new DB.

3. Update dependencies

cd rsk-explorer-api
rm -rf node_modules
npm install

4. Start explorer-api

  • start blocks services
  • start api