From 45cd224e185694349151df12ec46240389565409 Mon Sep 17 00:00:00 2001 From: Tony Date: Thu, 25 Aug 2022 19:28:14 +0000 Subject: [PATCH] docs: update deploy guide https://github.com/DIYgod/RSSHub/discussions/10615 --- docs/en/install/README.md | 27 ++++++++++++++++----------- docs/install/README.md | 28 +++++++++++++++++----------- 2 files changed, 33 insertions(+), 22 deletions(-) diff --git a/docs/en/install/README.md b/docs/en/install/README.md index e8fb9e7c8..07b6c6405 100644 --- a/docs/en/install/README.md +++ b/docs/en/install/README.md @@ -184,30 +184,29 @@ $ cd RSSHub Execute the following commands to install dependencies (Do not add the `--production` parameter for development). -Using `npm` - -```bash -$ npm ci --production -``` - -Or `yarnv1` (not recommended) +Using `yarnv1` ```bash $ yarn --production ``` +or using `npm` + +```bash +$ npm ci --production +``` + ### Launch Under `RSSHub`'s root directory, execute the following commands to launch ```bash -$ npm start +$ yarn start ``` Or - ```bash -$ yarn start +$ npm start ``` Or use [PM2](https://pm2.io/docs/plus/quick-start/) @@ -285,7 +284,13 @@ in pkgs.stdenv.mkDerivation { ### Notice -Heroku accounts with unverified payment methods have only 550 hours of credit per month (about 23 days), and up to 1,000 hours per month with verified payment methods. +::: warning Update + +Heroku [no longer](https://blog.heroku.com/next-chapter) offers free product plans. + +::: + +~~Heroku accounts with unverified payment methods have only 550 hours of credit per month (about 23 days), and up to 1,000 hours per month with verified payment methods.~~ ### Instant deploy (without automatic update) diff --git a/docs/install/README.md b/docs/install/README.md index 975be4a70..aa0ae1d53 100644 --- a/docs/install/README.md +++ b/docs/install/README.md @@ -184,18 +184,18 @@ $ cd RSSHub 下载完成后,需要安装依赖(开发不要加 `--production` 参数) -使用 `npm` - -```bash -$ npm ci --production -``` - -或 `yarn` +使用 `yarn` ```bash $ yarn install --production ``` +或 `npm` + +```bash +$ npm ci --production +``` + 由于众所周知的原因,在中国使用 `npm` 下载依赖十分缓慢,建议挂一个代理或者考虑使用 [NPM 镜像](https://npm.taobao.org/) ### 启动 @@ -203,13 +203,13 @@ $ yarn install --production 然后在 `RSSHub` 文件夹中运行下面的命令就可以启动 ```bash -$ npm start +$ yarn start ``` 或 ```bash -$ yarn start +$ npm start ``` 或使用 [PM2](https://pm2.keymetrics.io/docs/usage/quick-start/) @@ -287,9 +287,15 @@ in pkgs.stdenv.mkDerivation { ## 部署到 Heroku -### 注意: +### 注意 -未验证支付方式的 heroku 账户每月仅有 550 小时额度(约 23 天),验证支付方式后可达每月 1000 小时。 +::: warning 更新 + +Heroku [不再](https://blog.heroku.com/next-chapter) 提供免费服务。 + +::: + +~~未验证支付方式的 heroku 账户每月仅有 550 小时额度(约 23 天),验证支付方式后可达每月 1000 小时。~~ ### 一键部署(无自动更新)