mirror of https://github.com/status-im/codimd.git
Update README.md
This commit is contained in:
parent
f130807ead
commit
4c672cb24e
|
@ -49,11 +49,12 @@ If you are upgrading HackMD from an older version, follow below steps:
|
||||||
|
|
||||||
1. Fully stop your old server first (important).
|
1. Fully stop your old server first (important).
|
||||||
2. `git pull` or whatever that really update the files.
|
2. `git pull` or whatever that really update the files.
|
||||||
3. Modify the file named `.sequelizerc`, change the value of the variable `url` with your db connection string.
|
3. `npm install && bower install` to update dependencies.
|
||||||
|
4. Modify the file named `.sequelizerc`, change the value of the variable `url` with your db connection string.
|
||||||
For example: `postgres://username:password@localhost:5432/hackmd`.
|
For example: `postgres://username:password@localhost:5432/hackmd`.
|
||||||
4. Run `node_modules/.bin/sequelize db:migrate`, this step will migrate your db with the latest schema.
|
5. Run `node_modules/.bin/sequelize db:migrate`, this step will migrate your db with the latest schema.
|
||||||
You can also revert the migration with `node_modules/.bin/sequelize db:migrate:undo` (do this with caution).
|
You can also revert the migration with `node_modules/.bin/sequelize db:migrate:undo` (do this with caution).
|
||||||
5. Start your whole new server!
|
6. Start your whole new server!
|
||||||
|
|
||||||
Structure
|
Structure
|
||||||
---
|
---
|
||||||
|
|
Loading…
Reference in New Issue