0
0

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 5 years have passed since last update.

laradockでプロジェクトごとにデータベースのデータを分けることができたのでメモ

Posted at

現在、laradockで2つアプリを同時平行で開発しているのですが、一番最初始めるときに、何故かデータベースが共有されるという事がありました。

phpMyAdminにログインすると、2つのアプリで使うはずのデータベースがそれぞれ表示されていたんですね。

結論

laradock内にある.envファイルの内容を以下のように変更
laradock/.env
DATA_SAVE_PATH=~/.laradock/data <-この行を
DATA_SAVE_PATH=.laradock/data <-このように変更!!

こうする事でそれぞれのlaradock内で管理することができます。

以上!!

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?