From 2d6ba68682aeff040ed2407949ceb80c1d5989e5 Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Tue, 7 Jan 2020 23:43:37 +0000 Subject: [PATCH] update requirements in proj-env. --- proj-env/bin/gunicorn | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 proj-env/bin/gunicorn diff --git a/proj-env/bin/gunicorn b/proj-env/bin/gunicorn new file mode 100755 index 0000000..78a6c77 --- /dev/null +++ b/proj-env/bin/gunicorn @@ -0,0 +1,10 @@ +#!/mnt/dev-shed/midpoint/proj-env/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys + +from gunicorn.app.wsgiapp import run + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(run())