-
Notifications
You must be signed in to change notification settings - Fork 1
Production 環境のシステムエラーページの動作確認方法を追加 #4308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
The head ref may contain hidden characters: "feature/\u30B7\u30B9\u30C6\u30E0\u30A8\u30E9\u30FC\u30DA\u30FC\u30B8\u52D5\u4F5C\u78BA\u8A8D\u65B9\u6CD5\u3092\u4FEE\u6B63"
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
このPRは、Production環境でのシステムエラーページの動作確認方法をドキュメントに追加するものです。開発環境の設定に関する記述を削除し、Release構成でビルドしてProduction環境で動作確認する手順を新たに追加しています。
- Program.csから開発環境用の静的アセット設定を削除(issue #4303対応)
- Production環境での動作確認手順を追加(Release構成でのビルドと実行方法を説明)
- コードハイライトの行番号を更新(削除された行を反映)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
documents/contents/guidebooks/how-to-develop/ssr/centralized-error-handling.md#verification に書かれた2つの動作確認手順をそれぞれ実施しました。
-
Blazor ランタイムの例外の確認
アプリケーションを起動したところ、ログイン画面が表示されました。ログインしたところ Error.razor の内容とスタックトレースが表示されました。
-
.NET ランタイムの例外の確認
以下のコマンドを実行したところエラーになって Production 環境でのアプリケーション起動ができませんでした。
dotnet .\bin\Release\net10.0\publish\DresscaCMS.Web.dll --environment Production
エラーの内容は以下です。
Unhandled exception. System.ArgumentException: AnnouncementDbContext 接続文字列を構成から取得できません。 (Parameter 'configuration')
|
@kharada7 |
この Pull request で実施したこと
Production 環境でのシステムエラーページの動作確認方法を追加しました。
エラーになるコードを仕込んだ状態で、
CLI から Release 構成ビルドを行い、Production 環境でアプリを起動することにより、エラーページに遷移することを確認します。
再査してほしい内容
その他
下記の Program.cs への変更をドキュメントに反映しました。
この Pull request では実施していないこと
なし。
Issues や Discussions 、関連する Web サイトなどへのリンク
なし。