Skip to content

Commit

Permalink
docs: 更新README
Browse files Browse the repository at this point in the history
  • Loading branch information
lovezhangchuangxin committed Nov 13, 2024
1 parent 03f8376 commit b634471
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,24 @@

## 项目启动

1. 下载依赖
### 1. 下载依赖

```bash
pnpm install
```

2. 配置环境变量
### 2. 配置环境变量

`config/env` 目录下创建 `.env` 文件,复制 `.env.template` 中的内容,并修改为自己的配置。

3. 启动项目
### 3. 启动项目

```bash
pnpm dev:backend # 启动后端
pnpm dev:game # 启动前端
```

4. 项目部署
### 4. 项目部署

前端打包:

Expand Down Expand Up @@ -70,7 +70,3 @@ pm2 start pnpm --name star-anrgy -- run dev:backend
```bash
pnpm commit
```

## 注意

目前前端环境变量解析有些问题,请不要轻易修改端口号。

0 comments on commit b634471

Please sign in to comment.