From 72d8af8d7b0338b80802c71ed2bcf19730f46a43 Mon Sep 17 00:00:00 2001 From: Jasder <2053003901@@qq.com> Date: Mon, 28 Dec 2020 13:42:59 +0800 Subject: [PATCH] FIX update deploy file --- deploy.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/deploy.md b/deploy.md index ae644121..6bdd2362 100644 --- a/deploy.md +++ b/deploy.md @@ -69,23 +69,29 @@ bundle exec rake sync_table_structure:import_csv rails db:migrate RAILS_ENV=development ``` -### 8. 启动redis(此处已mac系统为例) +### 8. clone前端代码 +**将前端代码克隆到public/react目录下,目录结构应该是: public/react/build** +```bash +git clone https://git.trustie.net/jasder/build.git +``` + +### 9. 启动redis(此处已mac系统为例) ```bash redis-server& ``` -### 9. 启动sidekiq +### 10. 启动sidekiq **开发环境为development, 生成环境为production** ```bash bundle exec sidekiq -C config/sidekiq.yml -e production -d ``` -### 10. 启动rails服务 +### 1`. 启动rails服务 ```bash rails s ``` -### 11. 浏览器访问 +### 12. 浏览器访问 在浏览器中输入如下地址访问: ```bash http://localhost:3000/