home » zplus/clif.git
Author zPlus <zplus@peers.community> 2022-07-27 09:48:16
Committer zPlus <zplus@peers.community> 2022-07-27 09:48:16
Commit f59b413 (patch)
Tree 3ead55e
Parent(s)

Add integer code to exit() call. Add an integer (4) to the exit() call, such that gunicorn will quit instead of restarting the app continuously.


commits diff: d9113a6..f59b413
1 file changed, 1 insertion, 2 deletionsdownload


Diffstat
-rw-r--r-- web.py 3

Diff options
View
Side
Whitespace
Context lines
Inter-hunk lines
+1/-2 M   web.py
index 38edbcf..879b5c9
old size: 21K - new size: 21K
@@ -15,7 +15,6 @@ import pytz
15 15 import re
16 16 import stat
17 17 import subprocess
18 - import sys
19 18 import timeago
20 19
21 20 from pygments import highlight
@@ -88,7 +87,7 @@ def list_repositories():
88 87
89 88 if not os.path.isdir(GITOLITE_REPOSITORIES_ROOT):
90 89 print('Invalid repositories path: {}'.format(GITOLITE_REPOSITORIES_ROOT))
91 - sys.exit()
90 + exit(4)
92 91
93 92 # This only exists for exporting the bottle app object for a WSGI server such as Gunicorn
94 93 application = bottle.app()