Commit 7fa4e6a6 authored by xiezhi's avatar xiezhi

Fix README.md: 将所有代码块标记顶格写

parent 359f724b
...@@ -22,28 +22,28 @@ ...@@ -22,28 +22,28 @@
### 本地开发 ### 本地开发
1. **克隆项目** 1. **克隆项目**
```bash ```bash
git clone <项目地址> git clone <项目地址>
cd rust1.89.0-template cd rust1.89.0-template
``` ```
2. **安装依赖** 2. **安装依赖**
```bash ```bash
make install make install
``` ```
3. **启动应用** 3. **启动应用**
```bash ```bash
make run make run
``` ```
4. **访问应用** 4. **访问应用**
打开浏览器访问:http://localhost:8000 打开浏览器访问:http://localhost:8000
5. **停止应用** 5. **停止应用**
```bash ```bash
make stop make stop
``` ```
### 环境变量配置 ### 环境变量配置
...@@ -54,14 +54,14 @@ ...@@ -54,14 +54,14 @@
### Docker 部署 ### Docker 部署
1. **构建镜像** 1. **构建镜像**
```bash ```bash
docker build -t rust-hello-world . docker build -t rust-hello-world .
``` ```
2. **运行容器** 2. **运行容器**
```bash ```bash
docker run -p 8000:8000 -e APP_PORT_1=8000 rust-hello-world docker run -p 8000:8000 -e APP_PORT_1=8000 rust-hello-world
``` ```
## 项目结构 ## 项目结构
...@@ -146,11 +146,11 @@ Hello, World! ...@@ -146,11 +146,11 @@ Hello, World!
### 常见问题 ### 常见问题
1. **端口被占用** 1. **端口被占用**
```bash ```bash
# 查看端口占用 # 查看端口占用
lsof -i :8000 lsof -i :8000
# 或使用 make stop 停止应用 # 或使用 make stop 停止应用
``` ```
2. **依赖下载失败** 2. **依赖下载失败**
- 检查网络连接 - 检查网络连接
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment