mirror of https://github.com/zulip/zulip.git
5xx: Fix development server preview of 500 error page.
This can be viewed at http://localhost:9991/webpack/5xx.html on the development server. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
27a993a504
commit
4d8e5b5029
|
@ -56,7 +56,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="/webpack/5xx.html">/webpack/5xx.html</a></td>
|
<td><a href="/webpack/5xx.html">/webpack/5xx.html</a></td>
|
||||||
<td><code>./manage.py collectstatic --noinput</code></td>
|
<td>None needed</td>
|
||||||
<td>Error 5xx page served by nginx (used when Django is totally broken)</td>
|
<td>Error 5xx page served by nginx (used when Django is totally broken)</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<title>500 internal server error | Zulip</title>
|
<title>500 internal server error | Zulip</title>
|
||||||
<base href="/static/webpack-bundles/" />
|
|
||||||
<meta http-equiv="refresh" content="60;URL='/'" />
|
<meta http-equiv="refresh" content="60;URL='/'" />
|
||||||
<!-- We use `error-styles` webpack assets to styles this page. -->
|
<!-- We use `error-styles` webpack assets to styles this page. -->
|
||||||
|
|
||||||
|
|
|
@ -215,6 +215,7 @@ const config = (
|
||||||
filename: "5xx.html",
|
filename: "5xx.html",
|
||||||
template: "html/5xx.html",
|
template: "html/5xx.html",
|
||||||
chunks: ["error-styles"],
|
chunks: ["error-styles"],
|
||||||
|
publicPath: production ? "/static/webpack-bundles/" : "/webpack/",
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
devServer: {
|
devServer: {
|
||||||
|
|
Loading…
Reference in New Issue