Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rust1.89.0-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eazy-template
rust1.89.0-template
Commits
7fa4e6a6
Commit
7fa4e6a6
authored
Sep 15, 2025
by
xiezhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix README.md: 将所有代码块标记顶格写
parent
359f724b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
24 deletions
+24
-24
README.md
README.md
+24
-24
No files found.
README.md
View file @
7fa4e6a6
...
...
@@ -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.
**依赖下载失败**
-
检查网络连接
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment