about summary refs log tree commit diff
diff options
context:
space:
mode:
authorjgart2024-07-31 15:31:04 -0500
committerjgart2024-07-31 15:31:04 -0500
commit8bcb99e7d1fe7d5519935923d382a5deaa769936 (patch)
tree86f84939956d3c6a3b74e97950674a06ad1e0878
parent3c7e6101384e78232a62cd471ac8fd83c8fca3f5 (diff)
downloadguix-bioinformatics-8bcb99e7d1fe7d5519935923d382a5deaa769936.tar.gz
genecup: disable debug mode in flask application for production
-rw-r--r--gn/packages/genecup.scm5
1 files changed, 5 insertions, 0 deletions
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 "."))))