Upgrade from 1.x to 2.x
Objective
Learn how to upgrade SOAJS Core Database from 1.x to 2.x.
Prerequisites
The SOAJS Upgrader is built using NodeJS.
Before you begin:
- Make sure you have NodeJS on your machine
Download and install
- Download the attached script.zip
- Uncompress the compressed script.zip file.
- Follow the instructions below
Download, Install and Star the installer
# Navigate to the script > cd script # download the npm dependacy > npm install
sample config.js
"use strict"; module.exports = { "servers": [ { "host": "127.0.0.1", "port": 27017 } ], "credentials": {}, "URLParam": { "connectTimeoutMS": 0, "socketTimeoutMS": 0, "maxPoolSize": 5, "wtimeoutMS": 0, "slaveOk": true }, "streaming": {}, "name": "core_provision", "prefix": "" };
Run the script
Download, Install and Star the installer
# run the script > node index.js
Script Functionality
- Creates a backup of your core_provision database on ur local machine depending on the location path you provide( default: script root level ).
- Ask for the protocol (http|https), port (80|443|...) and deployment port (2376|...) for each environment.
- Update your core_provision database
Deployment port is not required for Manual Deployment