-
-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hot reload cause a permission denied error in docker container #350
Comments
And then when I tried to look into Line 133 in 2fc6d4f
The I noticed that hypercorn condition was incorrectly set to true, which cause the def restart() -> None:
# Restart this process (only safe for dev/debug)
executable = sys.executable
script_path = Path(sys.argv[0]).resolve()
args = sys.argv[1:]
main_package = sys.modules["__main__"].__package__
if main_package is None:
...
else:
if script_path.is_file() and os.access(script_path, os.X_OK): # <-- HERE!
# hypercorn run:app --reload
executable = str(script_path)
else:
# python run.py
args = [str(script_path), *args]
else:
...
os.execv(executable, [executable] + args) |
I hit this as well, wonder if it may be related to this open docker issue: docker/for-mac#5029 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hot reload cause a permission denied error in docker container:
How to replicate the bug:
docker run --rm -it -v $PWD:/app python:3.11-alpine ash
(mount current directory)pip install quart
app.py
, code copy from https://pgjones.gitlab.io/quart/tutorials/quickstart.htmlpython /app/app.py
app.py
and you will see the errorWhen I try to replicate it outside of docker container, hot-reload works fine.
Environment:
The text was updated successfully, but these errors were encountered: