Skip to content

Commit

Permalink
Merge pull request #553 from codeforjapan/fix-docs-docker-compose
Browse files Browse the repository at this point in the history
Use `docker compose` instead of `docker-compose`
  • Loading branch information
ayuki-joto authored Sep 11, 2023
2 parents 2ee23c4 + aea76e2 commit b3790e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,24 +84,24 @@ git checkout -b master origin/master

### 3.3 docker build
```
docker-compose build
docker compose build
```

### 3.4 DB作成からシードまで
```
docker-compose run --rm app ./bin/rails db:create db:migrate
docker-compose run --rm app ./bin/rails db:seed
docker compose run --rm app ./bin/rails db:create db:migrate
docker compose run --rm app ./bin/rails db:seed
```

`db:seed`でエラーが起きた場合、ダミーのデータ作成に失敗している可能性があります。以下を実行し、DBを再作成してみてください。

```
docker-compose run --rm app ./bin/rails db:reset
docker compose run --rm app ./bin/rails db:reset
```

### 3.5 サーバー起動
```
docker-compose up -d
docker compose up -d
```
### 3.6 お疲れさまでした
http://localhost:3000 にアクセス
Expand Down

0 comments on commit b3790e1

Please sign in to comment.