Add Rebuild Option [CI Skip]

This commit is contained in:
cutestnekoaqua 2022-12-14 18:09:58 +01:00
parent 8a7da9eaa0
commit 785ace95a4
No known key found for this signature in database
GPG key ID: 6BF0964A5069C1E0
2 changed files with 2 additions and 1 deletions

View file

@ -135,7 +135,7 @@ cp -r ../misskey/files . # if you don't use object storage
```sh ```sh
# git pull # git pull
yarn install 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 pm2 start "NODE_ENV=production yarn start" --name Calckey
``` ```

View file

@ -14,6 +14,7 @@
], ],
"private": true, "private": true,
"scripts": { "scripts": {
"rebuild": "yarn clean && yarn build",
"build": "yarn workspaces foreach run build && yarn run gulp", "build": "yarn workspaces foreach run build && yarn run gulp",
"start": "yarn workspace backend run start", "start": "yarn workspace backend run start",
"start:test": "yarn workspace backend run start:test", "start:test": "yarn workspace backend run start:test",