diff --git a/README.md b/README.md index 9fc4630a65..fb7e943d08 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 3f7af35a72..b79e0b0da4 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",