feat: command to upgrade outline (#1727)
* Add upgrade script to package.json * Update the docs to include docker and yarn guides
This commit is contained in:
14
README.md
14
README.md
@ -75,6 +75,20 @@ In development you can quickly get an environment running using Docker by follow
|
|||||||
1. Ensure that the bot token scope contains at least `users:read`
|
1. Ensure that the bot token scope contains at least `users:read`
|
||||||
1. Run `make up`. This will download dependencies, build and launch a development version of Outline
|
1. Run `make up`. This will download dependencies, build and launch a development version of Outline
|
||||||
|
|
||||||
|
### Upgrade
|
||||||
|
|
||||||
|
#### Docker
|
||||||
|
|
||||||
|
If you're running Outline with Docker you'll need to run migrations within the docker container after updating the image. The command will be something like:
|
||||||
|
```
|
||||||
|
docker run --rm outlinewiki/outline:latest yarn sequelize:migrate
|
||||||
|
```
|
||||||
|
#### Yarn
|
||||||
|
|
||||||
|
If you're running Outline by cloning this repository, run the following command to upgrade:
|
||||||
|
```
|
||||||
|
yarn upgrade
|
||||||
|
```
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
"heroku-postbuild": "yarn build && yarn sequelize:migrate",
|
"heroku-postbuild": "yarn build && yarn sequelize:migrate",
|
||||||
"sequelize:create-migration": "sequelize migration:create",
|
"sequelize:create-migration": "sequelize migration:create",
|
||||||
"sequelize:migrate": "sequelize db:migrate",
|
"sequelize:migrate": "sequelize db:migrate",
|
||||||
|
"upgrade": "git fetch && git pull && yarn install && yarn heroku-postbuild",
|
||||||
"test": "yarn test:app && yarn test:server",
|
"test": "yarn test:app && yarn test:server",
|
||||||
"test:app": "jest",
|
"test:app": "jest",
|
||||||
"test:server": "jest --config=server/.jestconfig.json --runInBand --forceExit",
|
"test:server": "jest --config=server/.jestconfig.json --runInBand --forceExit",
|
||||||
|
Reference in New Issue
Block a user