From: Jan "Yenya" Kasprzak Date: Sat, 20 Nov 2021 23:25:55 +0000 (+0100) Subject: Dev/Prod mode settings in config, git repo URL X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=paste.git;a=commitdiff_plain;h=c108522a94e2b0f3b7b69f1ba9d56333fe292e7c Dev/Prod mode settings in config, git repo URL --- 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>