mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-11 04:14:38 +00:00
Simplify words and fix format issues
This commit is contained in:
@@ -194,8 +194,6 @@ production:
|
||||
|
||||
### 11.7.9 步骤 7:启动应用
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
$ docker compose up
|
||||
```
|
||||
@@ -226,8 +224,6 @@ Created database 'myapp_test'
|
||||
|
||||
### 11.7.11 常用开发命令
|
||||
|
||||
运行以下命令:
|
||||
|
||||
```bash
|
||||
## 数据库迁移
|
||||
|
||||
@@ -252,8 +248,6 @@ $ docker compose exec web bash
|
||||
|
||||
### 11.7.12 常见问题
|
||||
|
||||
本节涵盖了相关内容与详细描述,主要探讨以下几个方面:
|
||||
|
||||
#### Q:数据库连接失败
|
||||
|
||||
检查 `DATABASE_URL` 环境变量格式是否正确,确保 db 服务已启动:
|
||||
@@ -283,8 +277,6 @@ $ docker compose run --rm web bundle update
|
||||
|
||||
### 11.7.13 开发 vs 生产
|
||||
|
||||
相关信息如下表:
|
||||
|
||||
| 配置项 | 开发环境 | 生产环境 |
|
||||
|--------|---------|---------|
|
||||
| Rails 服务器 | Puma (开发模式) | Puma + Nginx |
|
||||
|
||||
Reference in New Issue
Block a user