From e95763fee2cbd55fa3f1e937ba62789b1fbc257a Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Mon, 25 May 2020 11:40:27 -0400 Subject: [PATCH] preprod: Add a new preprod.html for our staging site I'm configuring our nginx reverse proxy to map stage.euchre.live to our preprod version of the site, so that we can move fast and break things while allowing relatives to play all the while. This commit sends over a modified frontend with a warning banner should the user be using the preprod version (so that we can easily distinguish). --- gloat.pl | 2 +- public/preprod.html | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 public/preprod.html diff --git a/gloat.pl b/gloat.pl index 9f98ab7..ed8e336 100755 --- a/gloat.pl +++ b/gloat.pl @@ -15,7 +15,7 @@ plugin Webpack => {process => [qw(js css sass)]}; get '/' => sub { my $c = shift; - $c->reply->static('index.html'); + $c->reply->static($ENV{PREPROD} ? 'preprod.html' : 'index.html'); }; get '/tables' => sub { diff --git a/public/preprod.html b/public/preprod.html new file mode 100644 index 0000000..751b57f --- /dev/null +++ b/public/preprod.html @@ -0,0 +1,31 @@ + + + + + + + + (PreProd) Euchre Live + + +
+

+ WARNING: Using the pre-production euchre.live version +

+
+
+ + + -- libgit2 1.1.1