chore: change yarn for npm

This commit is contained in:
Pitu 2021-01-04 01:06:46 +09:00
parent fcd39dc550
commit d8af517adc
2 changed files with 3 additions and 4 deletions

View File

@ -27,15 +27,14 @@ This guide asumes a lot of things, including that you know your way around linux
- `node` version 12+
- `build-essential` package installed to build dependencies
- `ffmpeg` package installed if you want video thumbnails
- `yarn` package installed. If you'd like to use npm instead change `package.json` accordingly
- `pm2` globally installed (`npm i -g pm2`) to keep the service alive at all times.
- A database, postgresql preferably. You can also fall back to sqlite3 which ships by default.
### Installing
1. Clone the repository and `cd` into it
2. Run `yarn install`
3. Run `yarn setup`
2. Run `npm i`
3. Run `npm run setup`
Chibisafe is now installed, configured and ready. Now you need to serve it to the public by using a domain name.

View File

@ -4,7 +4,7 @@ For starters we recommend cloning the new version somewhere else instead of `git
- 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.
- You then need to run `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.
- This will migrate the v3 database to v4 and regenerate every single thumbnail in webp to save bandwidth.
- After the migration finishes, the last step is to update your nginx config with the [newly provided script](./nginx.md).