summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMax Wu2016-12-11 23:22:17 +0800
committerGitHub2016-12-11 23:22:17 +0800
commit5eec050360fe748eb16f4db6397371466d72421a (patch)
tree8cb035ed94e640eb55659f1dec9924f9b3d4da02 /README.md
parentecb956f515a4a9fc661e0724d694fc1ed093dcaa (diff)
parent9e6fd505e12c21e60347501132e1f473b61942b3 (diff)
Merge pull request #274 from hackmdio/drop-bower
Drop bower
Diffstat (limited to '')
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 80efdf76..8806b06c 100644
--- a/README.md
+++ b/README.md
@@ -44,16 +44,16 @@ Prerequisite
- Node.js 4.x or up (test up to 6.7.0)
- Database (PostgreSQL, MySQL, MariaDB, SQLite, MSSQL) use charset `utf8`
-- npm and bower
+- npm
Get started
---
1. Download a release and unzip or clone into a directory
-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.
+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.
3. Setup the configs, see more below
4. Setup environment variables which will overwrite the configs
-5. Build front-end bundle by `npm run build` (use `npm run dev` if you are in development)
+5. Build front-end bundle by `npm run build:prod` (use `npm run build:dev` if you are in development)
6. Run the server as you like (node, forever, pm2)
Upgrade guide
@@ -63,7 +63,7 @@ If you are upgrading HackMD from an older version, follow these steps:
1. Fully stop your old server first (important)
2. `git pull` or do whatever that updates the files
-3. `npm install && bower install` to update dependencies
+3. `npm 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`
5. Run `node_modules/.bin/sequelize db:migrate`, this step will migrate your db to the latest schema