将所有的 "``sh" 替换为 "``bash"

这样更兼容 prism 避免报错。
This commit is contained in:
Tao Wang
2016-11-10 22:48:32 +11:00
parent d8be8f15a9
commit df94a6e1fb
15 changed files with 140 additions and 140 deletions

View File

@@ -20,7 +20,7 @@
#### index.py
编写一个 `index.py` 作为服务器文件,代码为
```sh
```bash
#!/usr/bin/python
#authors: yeasy.github.com
#date: 2013-07-05
@@ -93,13 +93,13 @@ if __name__ == '__main__':
#### index.html
生成一个临时的 `index.html` 文件,其内容会被 index.py 更新。
```sh
```bash
$ touch index.html
```
#### Dockerfile
生成一个 Dockerfile内容为
```sh
```bash
FROM python:2.7
WORKDIR /code
ADD . /code
@@ -109,7 +109,7 @@ CMD python index.py
### haproxy 目录
在其中生成一个 `haproxy.cfg` 文件,内容为
```sh
```bash
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
@@ -146,7 +146,7 @@ backend web_backends
### docker-compose.yml
编写 docker-compose.yml 文件,这个是 Compose 使用的主模板文件。内容十分简单,指定 3 个 web 容器,以及 1 个 haproxy 容器。
```sh
```bash
weba:
build: ./web
expose:
@@ -181,7 +181,7 @@ haproxy:
### 运行 compose 项目
现在 compose-haproxy-web 目录长成下面的样子。
```sh
```bash
compose-haproxy-web
├── docker-compose.yml
├── haproxy