diff options
| author | Pitu <[email protected]> | 2021-01-04 01:06:46 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2021-01-04 01:06:46 +0900 |
| commit | d8af517adc1a032b2b85f38c3739bbd1ff7a29a1 (patch) | |
| tree | 3667aab448a0bf81ce086c1198b6565534826113 | |
| parent | Merge branch 'dev' (diff) | |
| download | host.fuwn.me-d8af517adc1a032b2b85f38c3739bbd1ff7a29a1.tar.xz host.fuwn.me-d8af517adc1a032b2b85f38c3739bbd1ff7a29a1.zip | |
chore: change yarn for npm
| -rw-r--r-- | README.md | 5 | ||||
| -rw-r--r-- | docs/migrating.md | 2 |
2 files changed, 3 insertions, 4 deletions
@@ -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. diff --git a/docs/migrating.md b/docs/migrating.md index f461c98..635630d 100644 --- a/docs/migrating.md +++ b/docs/migrating.md @@ -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). |