You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,16 +44,16 @@ Prerequisite
44
44
45
45
- Node.js 4.x or up (test up to 6.7.0)
46
46
- Database (PostgreSQL, MySQL, MariaDB, SQLite, MSSQL) use charset `utf8`
47
-
- npm and bower
47
+
- npm
48
48
49
49
Get started
50
50
---
51
51
52
52
1. Download a release and unzip or clone into a directory
53
-
2. Enter the directory and type `bin/setup`, which will install npm/bower dependencies and create configs. The setup script is written in Bash, you would need bash as a prerequisite.
53
+
2. Enter the directory and type `bin/setup`, which will install npm dependencies and create configs. The setup script is written in Bash, you would need bash as a prerequisite.
54
54
3. Setup the configs, see more below
55
55
4. Setup environment variables which will overwrite the configs
56
-
5. Build front-end bundle by `npm run build` (use `npm run dev` if you are in development)
56
+
5. Build front-end bundle by `npm run build:prod` (use `npm run build:dev` if you are in development)
57
57
6. Run the server as you like (node, forever, pm2)
58
58
59
59
Upgrade guide
@@ -63,7 +63,7 @@ If you are upgrading HackMD from an older version, follow these steps:
63
63
64
64
1. Fully stop your old server first (important)
65
65
2.`git pull` or do whatever that updates the files
66
-
3.`npm install && bower install` to update dependencies
66
+
3.`npm install` to update dependencies
67
67
4. Modify the file named `.sequelizerc`, change the value of the variable `url` with your db connection string
68
68
For example: `postgres://username:password@localhost:5432/hackmd`
69
69
5. Run `node_modules/.bin/sequelize db:migrate`, this step will migrate your db to the latest schema
0 commit comments