2
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.

LaravelでデプロイするときにDB周りで困ったので備忘録

Posted at

LaravelでデプロイするときにDB周りで困ったので備忘録

本番にデプロイするためにDB設定

.env
LOG_CHANNEL=stack

DB_CONNECTION=mysql
DB_HOST={IPアドレス}
DB_PORT={ポート番号}
DB_DATABASE={データベース名}
DB_USERNAME={ユーザ名}
DB_PASSWORD={パスワード}

完了と思いきや...

Database [] not configured

エラー発生(´・ω・)

{プロジェクト名}/database.phpを置き忘れていました。
git ignoreに入ってるんだね。
知らなった

2
0
1

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
2
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?