Commit 7fa4e6a6 authored by xiezhi's avatar xiezhi

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

parent 359f724b
......@@ -22,28 +22,28 @@
### 本地开发
1. **克隆项目**
```bash
git clone <项目地址>
cd rust1.89.0-template
```
```bash
git clone <项目地址>
cd rust1.89.0-template
```
2. **安装依赖**
```bash
make install
```
```bash
make install
```
3. **启动应用**
```bash
make run
```
```bash
make run
```
4. **访问应用**
打开浏览器访问:http://localhost:8000
5. **停止应用**
```bash
make stop
```
```bash
make stop
```
### 环境变量配置
......@@ -54,14 +54,14 @@
### Docker 部署
1. **构建镜像**
```bash
docker build -t rust-hello-world .
```
```bash
docker build -t rust-hello-world .
```
2. **运行容器**
```bash
docker run -p 8000:8000 -e APP_PORT_1=8000 rust-hello-world
```
```bash
docker run -p 8000:8000 -e APP_PORT_1=8000 rust-hello-world
```
## 项目结构
......@@ -146,11 +146,11 @@ Hello, World!
### 常见问题
1. **端口被占用**
```bash
# 查看端口占用
lsof -i :8000
# 或使用 make stop 停止应用
```
```bash
# 查看端口占用
lsof -i :8000
# 或使用 make stop 停止应用
```
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