Skip to content

Instantly share code, notes, and snippets.

@akiym
Last active Nov 22, 2018
Embed
What would you like to do?
Reproduction code segmentation fault with --py-autoreload (uwsgi 2.0.17, Python 3.7)
# -*- coding: utf-8 -*-
FROM python:3.7-stretch
WORKDIR /app
RUN pip install uwsgi==2.0.17
COPY foobar.py .
COPY __init__.py foo/bar/__init__.py
CMD ["uwsgi", "--http", ":9090", "--wsgi-file", "foobar.py", "--py-autoreload", "1"]
# -*- coding: utf-8 -*-
import foo.bar
def application(env, start_response):
start_response('200 OK', [('Content-Type','text/html')])
return [b"Hello World"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment