- Make sure that you meet following requirements:
- You've selected the staging branch
git checkout staging
- Your staging branch is up to date
git pull
- Meteor is running
- Your terminal is inside the repository cards folder
- You've selected the staging branch
- Move to your staging branch
git checkout staging
- Install the mongodb-tools:
sudo apt-get install mongo-tools
- Set your repository to the latest Meteor 1.6 version
git checkout 29db2ca369d25fa2f9dab2d964a3f131eeba1aa4
- Dump your current Meteor 1.6 database
mongodump -h "localhost" --port "3001" -d "meteor" -o ~/cardsBackup/
- Make sure that mongodump created the folder and files
- Stop meteor
- Reset the meteor configuration
meteor reset
- Move back to the latest staging branch version
git checkout staging
- Update your node packages
meteor npm install
- Start meteor
- Restore your backup
mongorestore --drop -h "localhost" --port "3001" -d "meteor" ~/cardsBackup/meteor