From c108522a94e2b0f3b7b69f1ba9d56333fe292e7c Mon Sep 17 00:00:00 2001 From: "Jan \"Yenya\" Kasprzak" Date: Sun, 21 Nov 2021 00:25:55 +0100 Subject: [PATCH] Dev/Prod mode settings in config, git repo URL --- config.yml.sample | 3 +++ paste.pl | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config.yml.sample b/config.yml.sample index 6cc937f..8691f89 100644 --- a/config.yml.sample +++ b/config.yml.sample @@ -8,3 +8,6 @@ # # This paste bin name, used in and <h1> of the app pages: # appname: My Very Precious Files +# +# Uncomment this for verbose error pages: +# mode: development diff --git a/paste.pl b/paste.pl index fbbb0cc..a750dfa 100755 --- a/paste.pl +++ b/paste.pl @@ -65,6 +65,7 @@ get '/<filename>.<ext>' $c->render; } => 'default'; +app->mode(app->config->{mode}); app->start; __DATA__ @@ -172,7 +173,7 @@ __DATA__ <%= content %> <div class="footer"> Created by <b>Yenya's Paste Bin</b>, - <a href="https://www.fi.muni.cz/~kas/git/paste/">www.fi.muni.cz/~kas/git/paste</a> + <a href="https://www.fi.muni.cz/~kas/git/paste.git/">www.fi.muni.cz/~kas/git/paste</a> </div> </div></body> </html> -- 2.43.0