mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-30 21:22:30 +00:00
Added tip for copying the database when upgrading
This commit is contained in:
parent
be1cdc0df1
commit
42e9208b14
1 changed files with 11 additions and 1 deletions
12
README.md
12
README.md
|
@ -185,7 +185,17 @@ Once you are logged in as an admin user, you can visit `/admin/register` on your
|
||||||
|
|
||||||
*Please make sure to back up all Mongo, Redis and on-disk data before upgrading.*
|
*Please make sure to back up all Mongo, Redis and on-disk data before upgrading.*
|
||||||
|
|
||||||
Stop and remove the currently running ShareLaTeX container:
|
#### Migrations
|
||||||
|
Data stored in Mongodb will be automatically migrated to the latest schemea when upgrading docker releases. **This can make downgrades impossible.** One recommended technique is to test the migration first. This can be done by copying the mongodb database and doing a test run against the copied data.
|
||||||
|
|
||||||
|
```
|
||||||
|
db.copyDatabase(sharelatex,sharelatex-copy)
|
||||||
|
# start the container up pointing at the new db
|
||||||
|
--env SHARELATEX_MONGO_URL=mongodb://dockerhost/sharelatex-copy
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Upgrade process
|
||||||
|
To use the new docker container stop and remove the currently running ShareLaTeX container:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ docker stop sharelatex
|
$ docker stop sharelatex
|
||||||
|
|
Loading…
Reference in a new issue