- Backup the existing the database: Always keep a working database backup so that you can restore the system to the previous state when needed.
- Read the version-specific upgrade notes: You may need to perform some tasks before or after the upgrade.
-
Navigate to your directory that contains the OmiseGO eWallet Server's docker-compose.yml:
cd /path/to/your/ewallet/docker-compose/dir
-
Stop the eWallet server:
docker-compose stop
-
Download the latest version of the docker-compose.yml:
curl -o -sSL https://raw.githubusercontent.com/omisego/ewallet/master/docker-compose.yml
-
Initialize the database and start the server:
docker-compose run --rm ewallet initdb docker-compose up -d
This upgrade instructions assume that you installed the eWallet Server using our bare-metal setup.
-
Stop the eWallet server by simply pressing
Ctrl + C
twice. -
Make sure you are in the eWallet Server's directory:
cd /path/to/your/ewallet/server
-
Download the preferred version via
git checkout
:git checkout <version_tag>
Make sure that
<version_tag>
above is changed to your preferred release. -
Fetch any new and updated dependencies:
mix deps.get && (cd apps/frontend/assets/ && npm install)
-
Migrate the databases and test the new codebase:
mix ecto.migrate mix test
-
Start the server:
mix omg.server