From 8bcb99e7d1fe7d5519935923d382a5deaa769936 Mon Sep 17 00:00:00 2001 From: jgart Date: Wed, 31 Jul 2024 15:31:04 -0500 Subject: genecup: disable debug mode in flask application for production --- gn/packages/genecup.scm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gn/packages/genecup.scm') diff --git a/gn/packages/genecup.scm b/gn/packages/genecup.scm index d0689e6..868bfff 100644 --- a/gn/packages/genecup.scm +++ b/gn/packages/genecup.scm @@ -155,6 +155,11 @@ if __name__ == '__main__': (lambda _ (substitute* "server.py" (("4200") "4204")))) + ;; TODO: This should be disabled in the source. + (add-after 'unpack 'disable-debug-mode + (lambda _ + (substitute* "server.py" + (("debug=True") "debug=False")))) (add-after 'unpack 'make-files-writable (lambda _ (for-each make-file-writable (find-files ".")))) -- cgit v1.2.3