From fa9a964ec5a7cf0ab0edb53629a46cfa0b27a732 Mon Sep 17 00:00:00 2001 From: Zeeland Date: Mon, 5 Dec 2022 23:45:32 +0800 Subject: [PATCH 1/2] docs: correct wrong command --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0d74a50..2352fba 100644 --- a/README.md +++ b/README.md @@ -106,14 +106,14 @@ nebula([ˈnebyələ],n.星云)是一款现代化的知识社区项目, ```bash # install dependencies -$ npm install +$ npm run install # serve with hot reload at localhost:3000 -$ npm dev +$ npm run dev # build for production and launch server -$ npm build -$ npm start +$ npm run build +$ npm run start # generate static project $ npm generate From 3252894148f9318a8d3892f35a55d7dd713b8647 Mon Sep 17 00:00:00 2001 From: ronger Date: Thu, 8 Dec 2022 14:40:51 +0800 Subject: [PATCH 2/2] Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2352fba..fe9a686 100644 --- a/README.md +++ b/README.md @@ -106,17 +106,17 @@ nebula([ˈnebyələ],n.星云)是一款现代化的知识社区项目, ```bash # install dependencies -$ npm run install +$ yarn install # serve with hot reload at localhost:3000 -$ npm run dev +$ yarn run dev # build for production and launch server -$ npm run build -$ npm run start +$ yarn run build +$ yarn run start # generate static project -$ npm generate +$ yarn run generate ``` ## 项目部署 @@ -126,7 +126,7 @@ $ npm generate ![build](assets/build.png) 3. 服务器安装 `Nodejs` 环境 -4. 项目目录下执行 `npm install` +4. 项目目录下执行 `yarn install` 5. 执行 `npm install pm2 -g` 6. 执行 `pm2 list` 检查 `pm2` 是否安装好 7. 执行 `pm2 start npm --name nebula -- run start`