v3.0.0/docs/migrating.md

15 lines
1.0 KiB
Markdown
Raw Normal View History

2020-07-17 19:21:31 +02:00
### Migrate from v3 to v4
This version introduces a few breaking changes and updating requires some manual work.
For starters we recommend cloning the new version somewhere else instead of `git pull` on your v3 version.
- After cloning move your `uploads` folder from the v3 folder to the new v4 folder.
- Then copy your `database/db` file from your v3 folder to the root of your v4 folder.
- You then need to run `yarn setup` or `npm start setup` from the v4 folder and finish the setup process.
- Once that's done you need to manually run `node src/api/databaseMigration.js` from the root folder of v4
- After the migration finishes, the last step is to update your nginx config with the [newly provided script](./nginx.md)
- Restart nginx with `sudo nginx -s reload`
- And lastly start your lolisafe instance with `pm2 start pm2.json`
### Known issues of migrating
- The thumbnails in the album view don't show up. That's because they don't exist, this will get solved as you upload new stuff so the newly uploaded files get the proper thumbnail created.