From 785ace95a4523839048a9e24845f2589ed953d96 Mon Sep 17 00:00:00 2001 From: cutestnekoaqua Date: Wed, 14 Dec 2022 18:09:58 +0100 Subject: [PATCH] Add Rebuild Option [CI Skip] --- README.md | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9fc4630a6..fb7e943d0 100644 --- a/README.md +++ b/README.md @@ -135,7 +135,7 @@ cp -r ../misskey/files . # if you don't use object storage ```sh # git pull yarn install -NODE_ENV=production yarn run build && yarn run migrate +NODE_ENV=production yarn run rebuild && yarn run migrate pm2 start "NODE_ENV=production yarn start" --name Calckey ``` diff --git a/package.json b/package.json index 3f7af35a7..b79e0b0da 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ ], "private": true, "scripts": { + "rebuild": "yarn clean && yarn build", "build": "yarn workspaces foreach run build && yarn run gulp", "start": "yarn workspace backend run start", "start:test": "yarn workspace backend run start:test",