From 3d21e2eac69833ad7d635994960ed9fbdb9e79a0 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sat, 2 Apr 2022 12:06:06 +0200 Subject: [PATCH] Improve upgrade guide (#780) --- README.md | 18 ++++++++++++------ docker/docker-compose.yml | 2 +- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 17cb0738a..dbb047861 100644 --- a/README.md +++ b/README.md @@ -122,13 +122,11 @@ Open http://localhost:3333 in your browser and accomplish these steps: 1. Go to the _Admin Control Panel_ and click _Gather All Data_ to fetch historical data 1. Click _Sign out_ and check out the _Live Demo_ -### Migrate Database +### Upgrade Version -With the following command you can keep your database schema in sync after a Ghostfolio version update: - -```bash -docker-compose -f docker/docker-compose-build-local.yml exec ghostfolio yarn database:migrate -``` +1. Increase the version of the `ghostfolio/ghostfolio` Docker image in `docker/docker-compose.yml` +1. Run the following command to start the new Docker image: `docker-compose -f docker/docker-compose.yml up -d` +1. Then, run the following command to keep your database schema in sync: `docker-compose -f docker/docker-compose.yml exec ghostfolio yarn database:migrate` ## Development @@ -164,6 +162,14 @@ Run `yarn start:client` Run `yarn start:storybook` +### Migrate Database + +With the following command you can keep your database schema in sync: + +```bash +yarn database:push +``` + ## Testing Run `yarn test` diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 7c260f3cd..7afd19a19 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -1,7 +1,7 @@ version: '3.7' services: ghostfolio: - image: ghostfolio/ghostfolio + image: ghostfolio/ghostfolio:latest env_file: - ../.env environment: