0
0

More than 3 years have passed since last update.

AWS エラー解決 Uncaught ReferneceError:PhpDebugBar

Last updated at Posted at 2021-04-01

はじめに

AWSのデプロイを完了はしましたがUncaught ReferneceError:PhpDebugBar is not defined
というエラーが出ました。最初にローカル環境でデバックツールを導入したので本番環境では不必要になります。こちらを削除する為に備忘録として投稿致します。

“スクリーンショット” 2021-03-30 11.15.49.jpg

ステップ1

Configフォルダのappを編集

app.php
'debug' => env('APP_DEBUG', false),

ステップ2

ローカル環境にて実行するアプリをディレクトリに設定して下記を実行

composer remove barryvdh/laravel-debugbar

ステップ3

デバックバーを削除できたのでcomposer.jsoncomposer.lockの二つの設定ファイルを書き換える必要があります。なので

composer install

を実行して下さい。

ステップ4

最後にGitHub DesktopにてマージしてEC2にてgit pullで上書きを実行。これで削除ができると思います。

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