3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

dockerでGemfile(gem追加)更新したら後、データベースが消えた、gemが反映しない

Last updated at Posted at 2020-03-31

サーバーを再起動してますか????

#dockerではない通常開発の場合

dockerなし

control c でサーバー終了
rails s

これでgem反映します。

ということはdockerもサーバーを再起動しなければいけない。

dockerあり
$ docker-compose up
> control c で終了
$ docker-compose run web bundle install
$ docker-compose restart

これで反映されます。

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?