chsasank / outline-wiki-docker-compose

Installation and docker compose to self host outline wiki: https://www.getoutline.com/
295 stars 77 forks source link

Easiest way to update to newest outline version? #11

Closed tw0b33rs closed 3 years ago

tw0b33rs commented 3 years ago

Hi guys, this is not an issue, more like a best practice question. Which way would you recommend to update to the newest outline version without losing data? Thanks.

Snuupy commented 3 years ago

I did the following:

docker-compose pull
docker-compose down && docker-compose up -d

and it seems to work.

I think that if you run make install again it'll rewrite some variables and it'll rerun the install script (which you don't want)

tw0b33rs commented 3 years ago

Thanks, that worked for me as well!

Snuupy commented 3 years ago

Update: worked for 0.53.1 for me today, looks like db migrations went just fine :)

Snuupy commented 3 years ago

I'm having some issues with upgrading from 0.53.1 -> 0.54 due to the node build/server/scripts/20210226232041-migrate-authentication.js script that needs to be run.

outline_1   | $ node ./build/server/scripts/20210226232041-migrate-authentication.js
outline_1   |
outline_1   | error Command failed with exit code 1.
Snuupy commented 3 years ago

To get this working, edit the docker-compose file.

Change the line that says:

command: sh -c "yarn sequelize:migrate --env production-ssl-disabled && yarn start"

to:

command: sh -c "yarn sequelize:migrate --env production-ssl-disabled && node build/server/scripts/20210226232041-migrate-authentication.js && yarn start"

you can change it back after the migration has completed.