From af7a8f7c2583f0706236836c0c76322241a8b41a Mon Sep 17 00:00:00 2001 From: Simon Brooke Date: Sun, 23 Sep 2018 08:54:14 +0100 Subject: [PATCH] Added custom 502 page and restart script Temporary fix for the crash problem. --- resources/public/error/502.html | 73 +++++++++++++++++++++++++++++++++ resources/templates/base.html | 4 +- tomcat-restart.sh | 16 ++++++++ 3 files changed, 91 insertions(+), 2 deletions(-) create mode 100644 resources/public/error/502.html create mode 100644 tomcat-restart.sh diff --git a/resources/public/error/502.html b/resources/public/error/502.html new file mode 100644 index 0000000..d0f149f --- /dev/null +++ b/resources/public/error/502.html @@ -0,0 +1,73 @@ + + + + + + + + + + + + + Project Hope: 502 Bad Gateway + + + + + + + + + + +
+

Sorry, we have a problem

+
+ +
+
+ +
+
+
+
+
+

Error: 502 Bad Gateway

+

+ We are suffering an intermittent problem causing an occasional crash of + the Project Hope canvassing application. We apologise for this, and are + working on a permanent fix. +

+

+ The application will restart automatically + within five minutes, please take a short break. +

+
+
+
+
+
+
+ +
+
+
+ + + + + + + + + diff --git a/resources/templates/base.html b/resources/templates/base.html index ef97912..950e3e8 100644 --- a/resources/templates/base.html +++ b/resources/templates/base.html @@ -74,12 +74,12 @@