Skip to content

Commit

Permalink
Use docker compose instead of docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
takahashim committed Sep 11, 2023
1 parent a1b7039 commit aea76e2
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 aea76e2

Please sign in to comment.