]> www.fi.muni.cz Git - paste.git/commitdiff
Dev/Prod mode settings in config, git repo URL
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sat, 20 Nov 2021 23:25:55 +0000 (00:25 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sat, 20 Nov 2021 23:25:55 +0000 (00:25 +0100)
config.yml.sample
paste.pl

index 6cc937fb3e02da0bf0a696cd9a1f221bb81cfb2f..8691f894b76ecece4413bebbefcb8545c1e9a758 100644 (file)
@@ -8,3 +8,6 @@
 #
 # This paste bin name, used in <title> and <h1> of the app pages:
 # appname: My Very Precious Files
+#
+# Uncomment this for verbose error pages:
+# mode: development
index fbbb0cc0197859ba3aff27f1e49a1feaa12d9fb2..a750dfa6ecc70a745b11c6121fb5be8c5a1cee94 100755 (executable)
--- 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>