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 deletions
—
download
Diffstat
Diff options
+1/-2
M web.py
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
|
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()
|