Skip to content

Latest commit

 

History

History
 
 

upgrading

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Upgrading the eWallet Server

Before you begin

  1. Backup the existing the database: Always keep a working database backup so that you can restore the system to the previous state when needed.
  2. Read the version-specific upgrade notes: You may need to perform some tasks before or after the upgrade.

Upgrade (docker-compose)

  1. Navigate to your directory that contains the OmiseGO eWallet Server's docker-compose.yml:

    cd /path/to/your/ewallet/docker-compose/dir
  2. Stop the eWallet server:

    docker-compose stop
  3. Download the latest version of the docker-compose.yml:

    curl -o -sSL https://raw.githubusercontent.com/omisego/ewallet/master/docker-compose.yml
  4. Initialize the database and start the server:

    docker-compose run --rm ewallet initdb
    docker-compose up -d

Upgrade (bare-metal setup)

This upgrade instructions assume that you installed the eWallet Server using our bare-metal setup.

  1. Stop the eWallet server by simply pressing Ctrl + C twice.

  2. Make sure you are in the eWallet Server's directory:

    cd /path/to/your/ewallet/server
  3. Download the preferred version via git checkout:

    git checkout <version_tag>

    Make sure that <version_tag> above is changed to your preferred release.

  4. Fetch any new and updated dependencies:

    mix deps.get && (cd apps/frontend/assets/ && npm install)
  5. Migrate the databases and test the new codebase:

    mix ecto.migrate
    mix test
  6. Start the server:

    mix omg.server