From 9d7e575427fa8f9c32ebaa0d0b2762cec3d4a90c Mon Sep 17 00:00:00 2001 From: sergiotarxz Date: Wed, 9 Nov 2022 22:31:41 +0100 Subject: [PATCH] Multiple fixes for og and proxy behaviour. --- build_styles.sh | 1 + lib/BurguillosInfo.pm | 1 + templates/layouts/default.html.ep | 2 ++ 3 files changed, 4 insertions(+) diff --git a/build_styles.sh b/build_styles.sh index bdcbf3c..55263d0 100644 --- a/build_styles.sh +++ b/build_styles.sh @@ -3,5 +3,6 @@ if which sassc &> /dev/null; then sassc public/css/styles.scss > public/css/styles.css else + echo "No sassc" exit 1 fi diff --git a/lib/BurguillosInfo.pm b/lib/BurguillosInfo.pm index 0dc8f12..42bfffe 100644 --- a/lib/BurguillosInfo.pm +++ b/lib/BurguillosInfo.pm @@ -4,6 +4,7 @@ use Mojo::Base 'Mojolicious', -signatures; # This method will run once at server start sub startup ($self) { + $self->config(hypnotoad => {listen => ['http://localhost:3000']}); # Router my $r = $self->routes; diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index ded36a2..4c3b362 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -5,6 +5,8 @@ <%= title %> + +