mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-25 12:16:29 +08:00
Update deployment guidance (Docker)
This commit is contained in:
parent
32a8abdb4e
commit
d90f3f8282
1 changed files with 5 additions and 6 deletions
|
@ -41,23 +41,22 @@ comments: true
|
||||||
|
|
||||||
非常欢迎您和我一同来创作本书!
|
非常欢迎您和我一同来创作本书!
|
||||||
|
|
||||||
## 离线部署
|
## 本地部署 hello-algo
|
||||||
|
|
||||||
### Docker
|
### Docker
|
||||||
|
|
||||||
使用本教程前,请确保 Docker 已经安装并启动。
|
请确保 Docker 已经安装并启动,并根据如下命令离线部署。
|
||||||
|
|
||||||
根据如下命令离线部署。
|
稍等片刻,即可使用浏览器打开 `http://localhost:8000` 访问本项目。
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/krahets/hello-algo.git
|
git clone https://github.com/krahets/hello-algo.git
|
||||||
cd hello-algo
|
cd hello-algo
|
||||||
|
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
稍等片刻,即可通过浏览器打开 `http://localhost:8000` 访问本教程。
|
使用如下命令即可删除部署。
|
||||||
|
|
||||||
使用如下命令删除部署。
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose down
|
docker-compose down
|
||||||
|
|
Loading…
Reference in a new issue